0

EOFError

Why does the EOFerror occurred when running a program with input() in sololearn? It runs well in Python IDLE.

26th Sep 2018, 5:16 AM
Karl Jinhai Zhang
Karl Jinhai Zhang - avatar
2 Réponses
+ 6
Maybe you didn't give the proper no. of input. Unlike IDLE, Sololearn asks for all the input at once so you should give all the input in separate lines. Try that ^^ and if you still find any problem, feel free to ask!
26th Sep 2018, 7:06 AM
Nikhil
Nikhil - avatar
+ 1
Aah, you are right. I tried and it works. Thanks a lot
26th Sep 2018, 8:23 AM
Karl Jinhai Zhang
Karl Jinhai Zhang - avatar