Python Program to Add Two Numbers



In this program, we will take two values from user as input and calculate their sum.



  1. #Python program to add two numbers
  2. a= int(input("Enter a number: "))
  3. b= int(input("Enter another number: "))
  4. c= a+b
  5. print("Sum of both numbers= ", c)

Output


Output!