0
Running this code requests for one number then displays an error: print(float(input("Enter a number: ")) + float(input("Enter
This is the error: Enter a number: Enter another number: Traceback (most recent call last): File "..\Playground\", line 1, in <module> \ufeffprint(float(input("Enter a number: ")) + float(input("Enter another number: "))) ValueError: could not convert string to float:
3 Respostas
+ 3
The provided line of code works fine. Can you provide the whole code
+ 3
Wyke Isaji yep that works
0
print(float(input("Enter a number: ")) + float(input("Enter another number: ")))