+ 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
4 Respuestas
+ 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.
+ 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.
+ 1
ok, thank you
+ 1
ok