+ 3
This code does not work:
print(float(input("Enter a number: ")) + float(input("Enter another number: ")))
5 Respostas
+ 1
Both run into the IDLE.
v.3.4
print(float(input("num3: ")) + float(input("num4: ")))
v.2.7
print float(input("num3: ")) + float(input("num4: "))
0
write in next line
0
print(float(input("Enter a number: ")))
print(float(input("Enter another number: ")))
0
Don't know why Eduard Bedratyi's comment is disliked, he's right, code works if you enter numbers in two different lines when popup appears. Actually, that's what input box says.
Thanks
- 2
It is better if you enter "Enter" after 1st input, and enter "Submit" after 2nd input. Code works!