+ 1
Input error
What's wrong with line 4?? i = 0 while True: i = i +1 if i == int(input()): print(("Skipping")+str(i)) continue if i == 5: print("Break") break print(i) print("Finished")
3 Answers
+ 2
if all you want your code to do is accept a number of input values
printing 'Skipping + X' when the input matches the value
of i before finally quitting then there is nothing wrong with the code.
The problem is the code testing environment here is
not setup to take multiple inputs.
If you have python installed on a computer then run it
in the python shell and you will see it work's ok.
+ 1
assign the input to a variable
x = int(input())
then if i == x:
....
+ 1
@N3tW0rk
I did it, but the output still showed "EOF error"