0

Inputs not working inside of if statements when using Code Playground?

''' your_input = str(input("Operator Used: ")) if your_input == "add": add1 = float(input("First Number to Add: ")) add2 = float(input("Second Number to Add: ")) result = float(add1 + add2) print(float(result)) ''' Something like this simple code won't work with code playground. It won't let me use two inputs in the same program. Is there anyway to change this or a special way to do this? It seems to work on any other Python3 compiler.

16th May 2017, 2:44 PM
Aidan Young
Aidan Young - avatar
1 Odpowiedź
0
No, this is something Code playground struggles with. all input must be entered when program is launched Add 10.4 12.5 If you are on android, QPython3 works very well
16th May 2017, 3:33 PM
LordHill
LordHill - avatar