How to add two numbers in python?

Adding numbers is the basic program we all do in any programming language. Here we’ll see how to add number in python.
e.g.,
a=4 b=5 print(a+b)

e.g.,
a=input() b=input() sum=float(a)+float(b) print(sum)

This is how we add two numbers in python.
Subscribe
Login
Please login to comment
0 Discussion