0

Loop won’t run

Python; It won’t take the input on Line 4, Idk why? x = int(input("")) if x != 2: print("no") x = int(input("")) else: print("yea")

23rd Sep 2018, 1:46 AM
Spencer
2 Antworten
+ 7
Code Playground requires you to provide all input prior to code compilation. To achieve what you want to observe, it is best to run such scripts on a desktop interpreter. if statements are conditional statements, not loops, btw.
23rd Sep 2018, 1:58 AM
Hatsy Rei
Hatsy Rei - avatar
0
correct, misuse of terms on my part. thanks man
23rd Sep 2018, 4:10 AM
Spencer