Add Two Number In Python

Share on facebook
Share on twitter
Share on linkedin
Share on twitter
Share on tumblr

In this basic python program, we will add two numbers and print the sum of the two numbers.

Python program to add two numbers

a= 10
b= 20
# summing up the two numbers
sum = a+ b
# printing the sum 
print("Sum of {0} and {1} is {2}" .format(a, b, sum)) 


Sum of 10 and 20 is 30

Leave a Comment

Your email address will not be published. Required fields are marked *