Python program to take two numbers from user and add those two numbers

Views: 16   

Following program shows you how to take two numbers from user and add those two numbers.
In this program we take two numbers from user using input method and add those two numbers

number1 = int(input("Enter first number:"))
number2 = int(input("Enter second number:"))
sum= number1 + number2
print("Sum of the given two numbers is: ", sum)

Output:

Enter first number: 200
Enter second number: 55
Sum of the given two numbers is:  255
On By