+ 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
8 Réponses
+ 12
The statement
line = input()
at the top should be removed, and
line = input
before the while should have parentheses on input.
+ 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.
+ 10
yw again 😊
+ 9
thanks tamra
+ 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
+ 7
its working thanks again
+ 7
the code playground was not the problem
+ 7
it wasn't the problem it was not leaving an empty line at the end of input , it is working fine try it