Question #282855

Accept two float input from the user, add both numbers and display the result. To convert an input



string value into float use float() function.

Expert's answer

a = float(input("The first number: "))
b = float(input("The second number: "))
print("Result:", a+b)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS