Understand data types and number operations

num1=input( ' Please enter the first number: ' )
num2 =input( ' Please enter the second number: ' )

sum=float(num1)+float(num2)

print ( ' The result of adding numbers {} and {} is: {} ' .format(num1,num2,sum))

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324695049&siteId=291194637