In this program, we will take two values from user as input and calculate their sum.
#Python program to add two numbers a= int(input("Enter a number: ")) b= int(input("Enter another number: ")) c= a+b print("Sum of both numbers= ", c)
Output