+ 1

What does EODError mean and how do I fix it? (Python)

Traceback (most recent call last): File "..\Playground\", line 3, in <module> txt=input("Would you like to play this game?(yes/no)") EOFError: EOF when reading a line https://code.sololearn.com/cq5JeZmq56J2/?ref=app

16th Jun 2019, 6:53 PM
Whanos
Whanos - avatar
4 Answers
+ 2
Because of the multiple inputs, you can't do a game like this in SoloLearn simply because SoloLearn requires you to enter all inputs in the beginning (the white box). Your code works, and to ensure that it does just enter every single input that is required in the white box, but every input in an isolated line. Your code should work normay in any other IDE.
16th Jun 2019, 7:35 PM
Mo Hani
Mo Hani - avatar
+ 2
Whanos i've also encountered an error, you gave the first input the name txt, then you said if input == "Yes", instead of input it should be the variable txt which holds the input inside it. I'm not sure if there are more errors, but you can try in another IDE and debug if there are.
16th Jun 2019, 7:40 PM
Mo Hani
Mo Hani - avatar
+ 1
ok, thank you
16th Jun 2019, 7:37 PM
Whanos
Whanos - avatar
+ 1
ok
16th Jun 2019, 7:42 PM
Whanos
Whanos - avatar