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.
a = float(input("The first number: ")) b = float(input("The second number: ")) print("Result:", a+b)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment