Learn about Add Two Numbers in Python Without Using Any Variables in the below code example. Also, refer to the comments in the code snippet to get a detailed view about what’s actually happening.
Contents
Add Two Numbers in Python Without Using Any Variables
#program to add two numbers
print('The sum is %.2f' %(float(input('First Number: '))+ float(input('Second Number: '))))
Output:
First Number: 4
Second Number: 5
The sum is 9.00
Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.
Similar Code : Add Two Numbers using Function in Python