Code playground doesnt accept multiple inputs!? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 6

Code playground doesnt accept multiple inputs!?

I finally made a code for solo learn, a version of jeopardy I was rly hoping I could share. Unfortunately I get a "EOFError: EOF when reading a line". It seems the solo learn playground is not designed for code that requires multiple inputs. Any way around this?

8th Oct 2017, 2:56 AM
stephen barter
stephen barter - avatar
6 Respostas
+ 4
Nope. You just have to use an external interpreter. Don't worry, people can just copy/paste the code into a text file, and run from there. :D
8th Oct 2017, 3:02 AM
LunarCoffee
LunarCoffee - avatar
+ 4
@Niawahta Perhaps that is the case
8th Oct 2017, 3:12 AM
Shane Overby
Shane Overby - avatar
+ 4
unfortunately, no way around it. thanks for advice though everyone. may still upload and hope people are willing to give it a go via their own IDE.
8th Oct 2017, 4:33 AM
stephen barter
stephen barter - avatar
+ 3
To submit multiple inputs enter them on separate lines in the prompt, in the order that your code calls for them.
8th Oct 2017, 3:03 AM
Shane Overby
Shane Overby - avatar
+ 3
@Shane The poster's code probably has a loop of sorts that asks for input after each turn, as it is a Jeopardy game.
8th Oct 2017, 3:04 AM
LunarCoffee
LunarCoffee - avatar
+ 2
Wasn't it possible by using new lines in the input field? Like when you used a new line when entering the text? I am not sure but I thought it possible. Just enter one command / word, press return and enter the next and try then. If not, sorry.
8th Oct 2017, 3:05 AM
Timo
Timo - avatar