Python program to add two number
--
Python program to add two number
This program will add the two numbers and display their sum on the screen.
Example:
Input: Number1 = 20 Number2 = 30
Output: Sum = 20 + 30 = 50
#Program to calculate the sum of two number
#Take two number from user
number1 = int(input(“Enter the first number:”))
number2 = int(input(“Enter the second number:”))
# perform calculation and store in a variable sum
sum = number1 + number2
#Print the result
print(‘sum of {0} and {1} is {2}’ .format(number1, number2, sum))