Python Examples
Python ExamplesPrograms with output

Python Program to Add Two Numbers


Example:
print("Enter Number 1: ")
num1 = int(input())

print("Enter Number 2: ")
num2 = int(input())

add = num1+num2
print("\nAddition: ", add)
Output:
Enter Number 1:
10
Enter Number 2:
20

Addition: 30

Share this page on:

Was this page helpful ?

Let us know how we did!

Subscribe Email Updates

to get latest update