+ 1

problem with the python interpreter

the python interpreter keeps giving me an error EOFError ,since the code works elsewhere what may be the problem.It occurred when number = int(input("Enter number of hops:")) code was entered.

21st Sep 2018, 8:38 PM
matopekali
matopekali - avatar
8 Respuestas
+ 2
on SL, all of the inputs have to be entered at the same time, when you initially run the program. not inputting everything will result in an EOFError
21st Sep 2018, 8:55 PM
hinanawi
hinanawi - avatar
+ 2
provide a link to your code please
21st Sep 2018, 8:58 PM
hinanawi
hinanawi - avatar
+ 2
matopekali input works fine for me. again, linking your code would help a lot because it provides a concrete example.
21st Sep 2018, 9:01 PM
hinanawi
hinanawi - avatar
+ 2
matopekali i've checked your code. if i input a string on the first line, and a number on the next, no EOFError is returned.
21st Sep 2018, 9:08 PM
hinanawi
hinanawi - avatar
+ 1
The thing is the code does not even run
21st Sep 2018, 8:58 PM
matopekali
matopekali - avatar
+ 1
Try initialization of inputs in the python playground
21st Sep 2018, 9:00 PM
matopekali
matopekali - avatar
+ 1
Let me do that
21st Sep 2018, 9:06 PM
matopekali
matopekali - avatar
0
The code works past the problem on phone but halts when using a pc
21st Sep 2018, 9:08 PM
matopekali
matopekali - avatar