Add Two numbers Program in Python
Advertisements
Add Two numbers Program in Python
Add two number program in python is very simple and easy.
Add Two numbers Program in Python
number1 = input("Enter First Number: ") number2 = input("Enter second number: ") sum = float(number1) + float(number2) print('Sum of {0} and {1} is {2}'.format(number1, number2, sum))
Output
Enter first number: 10 Enter second number: 20 Sum of 10 and 20 is 30.0
Google Advertisment