+ 1
I wrote a code on my computer and it works fine but whenever I try it on solo learn,it gives me and 'error eof'. What do I do?
Error eof
6 Respostas
+ 6
Input is submitted to SoloLearn apps as a batch input file (not interactively) ...so if I enter this into the input box presented by the app:
add
1
2
divide
3
4
The output shows answers for add (=3) and divide (=0.75) and then reports EOFError... because I omitted 'quit' as my last option and "while True" (line 23) iterates again.
If you're ready for error handling, you could check for the EOFError exception and quit gracefully, assuming "no input" means quit.
+ 4
SoloLearn has different setups with its Python coding. Some imports that normally work would not. Also some code that normally works in SoloLearn may not work in your computer.
+ 3
Show your code :) [it helps people practice troubleshooting]
(You can 'share' a link from the code's menu, or tap "+ Insert..." to link while answering)
0
that's the code. I'm sorry it took so long, I've been busy. thanks a lot
0
thanks so much. I'm ready for it. I'll edit the code.