Can anybody help me out on this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

Can anybody help me out on this

I'm trying to get multiple inputs for a code am working on but this way is outputting an EOF error , what is wrong here , or is it because I am using sololearn's code playground https://code.sololearn.com/cXrjfFmV4fg1/?ref=app

16th Apr 2017, 7:52 PM
Hasan Fares
Hasan Fares - avatar
8 Answers
+ 12
The statement line = input() at the top should be removed, and line = input before the while should have parentheses on input.
16th Apr 2017, 8:31 PM
Tamra
Tamra - avatar
+ 15
Yep, it's the Code Playground. You need to put all your inputs in that one input box, each on a separate line, even the single space. It'll run like intended, even if the input's different.
15th Apr 2017, 7:30 PM
Tamra
Tamra - avatar
+ 10
yw again 😊
16th Apr 2017, 11:23 PM
Tamra
Tamra - avatar
+ 9
thanks tamra
15th Apr 2017, 8:23 PM
Hasan Fares
Hasan Fares - avatar
+ 7
so i managed to get it right you can check the code again , but another error now is that the first line of input is not read it only retains this message : <built-in function input> however all other lines in the input where read , is there a way to fix this
16th Apr 2017, 7:51 PM
Hasan Fares
Hasan Fares - avatar
+ 7
its working thanks again
16th Apr 2017, 11:17 PM
Hasan Fares
Hasan Fares - avatar
+ 7
the code playground was not the problem
29th Apr 2017, 8:07 AM
Hasan Fares
Hasan Fares - avatar
+ 7
it wasn't the problem it was not leaving an empty line at the end of input , it is working fine try it
30th Apr 2017, 6:36 AM
Hasan Fares
Hasan Fares - avatar