0
How to fix EOFError?
Im getting EOFErron on a code in sololearn only, but the code is working well in other python IDE like pydroid3. Link: https://code.sololearn.com/c6JiOD2nl9Tk/?ref=app
9 odpowiedzi
+ 2
Victor nothing wrong with your program.
Here is a screenshot how you can provide multiple inputs.
https://pasteboard.co/In1xG3t.jpg
+ 1
You can get this type of error on sololearn if you repeatedly ask for user input but none is given. This type of interactivity in not supported by the sololearn compilers (except with web code). If your program needs multiple inputs, you can give all of them at the same time in the same popup window, separating them with endline character
+ 1
Tibor Santa thanks man.
+ 1
franky I really don't see the reason of your outrage, as far as I can see, ChillPill was requesting more details about the nature of the error message. I would have done the same (only I have actually encountered the same error before...) But it could be caused by something else too. Easiest way to tell, is to look at the actual code.
We are here to help each other, not to fight. So please chill out, no need to fall at each others throats. ;)
+ 1
ChillPill yaa I edited the post and add code link after you said to do so.
0
franky I use sololearn in my mobile...but still I tried as you said, but still it's not working.
0
Thanks Tibor, if we can actually help one another this way, the world will be a better place and not some troll who thinks they know everything.
- 1
EOF means End Of File.
In sololearn, make sure your mouse pointer is at the last line of code.
To make it easier, after writing a code, hit enter to get the cursor to the next line.
- 1
If you have linked external files to your project, try check every file to make sure that the cursor is at the end of every line of code in each file.