Skip to content
Home » Python program to add two numbers

Python program to add two numbers

Below is the code to print addition of two numbers

# Addition of two numbers
a=int(input("Enter first number:"))
b=int(input("Enter second number:"))
print("Sum of",a,"and",b,"is",a+b)

Output:

Enter first number:4
Enter second number:5
Sum of 4 and 5 is 9