EOFError python. Pls help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

EOFError python. Pls help

I tried making a guess my number game, because why not? But I keep bumping into an End of File error, but my code looks clean. Can someone pls check it out for me. Any help is much appreciated. https://code.sololearn.com/czIqrE7A0Ddj/?ref=app

28th May 2017, 8:21 AM
MandelaK
MandelaK - avatar
3 Answers
+ 4
This is a limit of Playground. If you press RUN button, you have to write all the inputs you need. So if you enter one number and it is not a number program wants, playground tries to read one more number. However, there is no number to read. This causes EOFError.
28th May 2017, 8:26 AM
OrbitHv [Inactive]
OrbitHv [Inactive] - avatar
+ 2
Wow thx, no wonder they ask us to place multiple inputs in different lines
28th May 2017, 8:31 AM
MandelaK
MandelaK - avatar
+ 2
Well there goes my game lol. Thx a lot for the info 😁
28th May 2017, 8:32 AM
MandelaK
MandelaK - avatar