Write a method to add numbers in python language
Answers
Answered by
2
num = input("enter a no: ")
num1 = input("another no: ")
add = int(num) + int(num1) #you can use float also
print("the sum of {0} and {1} is {2}".format(num, num1, add))
num1 = input("another no: ")
add = int(num) + int(num1) #you can use float also
print("the sum of {0} and {1} is {2}".format(num, num1, add))
Similar questions