Add Two Number In Python

Share on facebook
Share on twitter
Share on pinterest

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

Subscribe to our Newsletter

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Share this post with your friends

Share on facebook
Share on google
Share on twitter
Share on linkedin

Leave a Reply

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