Python interpreter bug? Standard looped input exception handler crashes.

I spent a while trying to figure out why I couldn't get a looped numeric input checker to function and then I tried it in the python IDE and it worked fine. Anyone know why this happens and/or a good workaround? https://code.sololearn.com/c5jzOX0pWuy1/?ref=app

9th Nov 2018, 2:20 AM
michael garcia
michael garcia - avatar
1 Answer
+ 2
On Sololearn, you submit all the input to your program once, at the beginning. That means when you run out of input, there won't be a second popup asking you for input, and python complains about EOF (end of file). It's a limitation of the platform unfortunately, but if you know it you can work around it pretty easily.
9th Nov 2018, 2:35 AM
Schindlabua - avatar