How to add two numbers using python code

In this tutorial, we are going to show How to Add two numbers using python. We have added the video tutorial and the source code of the program.

Video Tutorial: Add two numbers using python code

Source Code

# Python program to add two numbers

a = input('Enter value of a: ')
b = input('Enter value of b: ')

sum =  float(a) + float(b) 

print('\nSum of',a,'and',b,'is',sum)


Also Read: Python program to create bmi calculator

Join Now : Learn Python Programming Masterclass

Leave a Reply

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