0

EOFerror from lesson

I copied a code from the lesson to test it out and see how it works, but it brought up EOF Error. How can I solve this? https://code.sololearn.com/c3daunSI4t4O/?ref=app

15th Aug 2023, 3:08 PM
Excelsior
Excelsior - avatar
2 Answers
+ 6
The problem is that SoloLearn input system is not very interactive. You have to type all the inputs (tries) that you want to attempt (one per line). Otherwise it will break because it stops getting any input and the program cannot terminate. It doesn't have the capacity at the moment to keep prompting you for input after every 'input()' call. I tried that, and it works, once the correct line is input. If you try the program in a terminal or in an IDE, it won't have this issue.
15th Aug 2023, 3:18 PM
Marcos Chamosa RodrĂ­guez
Marcos Chamosa RodrĂ­guez - avatar
+ 2
Thanks a lot. I will do that.
15th Aug 2023, 3:39 PM
Excelsior
Excelsior - avatar