Python Program to add three numbers
In this program, you will learn how to add three numbers in Python.
z = int(input("Enter third number:"))
Example: How to add three numbers in Python
x = int(input("Enter first number:"))
y = int(input("Enter second number:"))
z = int(input("Enter third number:"))
s = x + y + z
print("Sum of three numbers:", s)
Output:
Enter first number:10
Enter second number:20
Enter third number:30
Sum of three numbers: 60