sum of two numbers without using int in python?

 print ("Enter first number")

 f1 = input ()

 print ("Enter second number")

 f2 = input ()

 print ("Sum of these two numbers is",   int(f1) + int(f2))

 #Output of this program

 Enter first number

 21

 Enter second number

 8

 Sum of these two numbers is 29

Comments

Popular posts from this blog

What is computer programming?