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? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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

20th Nov 2017, 2:46 AM
amaugo somto
amaugo somto - avatar
6 Réponses
+ 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.
22nd Nov 2017, 8:55 PM
Kirk Schafer
Kirk Schafer - avatar
+ 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.
20th Nov 2017, 2:52 AM
Caleb Royer
Caleb Royer - avatar
+ 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)
20th Nov 2017, 2:59 AM
Kirk Schafer
Kirk Schafer - avatar
22nd Nov 2017, 4:44 AM
amaugo somto
amaugo somto - avatar
0
that's the code. I'm sorry it took so long, I've been busy. thanks a lot
22nd Nov 2017, 4:44 AM
amaugo somto
amaugo somto - avatar
0
thanks so much. I'm ready for it. I'll edit the code.
23rd Nov 2017, 5:23 AM
amaugo somto
amaugo somto - avatar