- 1

What

ERROR: Eof when reading a line

30th Oct 2017, 11:23 AM
DJUMBLE
DJUMBLE - avatar
3 Answers
+ 2
One more time: Sololearn playground is limited by the fact that code are processed on server side (appart the special case of web projects) so script is sent to sololearn servers with once string user inputed wich will be used as a virtual input stream when (distant) running the script... so user is asked to input all required input by the code execution at once (line breaks used to separate each of them) and avoiding real in/output interativity and/or real-time display (in a similar ways as input, output is collected on server side during the code execution, and is sent back to user side after the script end). Web projects are a little bit different in in/output treatment, as by design, the code is processed on user side... but unfortunaly, the code is still (uselessly) send to server before be loaded in the playground viewer, so realtime in/ouput interactivity is still possible. The key is not so much in a "compiler" question (Python is not compiled, but interpreted), but in the ability to run the script locally... in my point of view, that's not an enough reason to jump to another language, but a reason to less success of sharing other than web code. But almost, "running codes through a different COMPILER" is not the good answer: you need to use/install a local interpreter (linux have generally one preinstalled, I guess macOS too, but windows need to install one, and android -- and potentially iOS -- have app able to run Python script -- I personnally use QPython on android)...
30th Oct 2017, 11:40 AM
visph
visph - avatar
+ 1
https://code.sololearn.com/cRdAHD3F5ZaJ/?ref=app Split your input like this code.
30th Oct 2017, 11:39 AM
Rick
Rick - avatar