+ 3
Why can't I request multiple inputs?
My first input function generates a popup request. However, the second input funtion would not work, there is no popup input request. The error message displayed is "EOFError: EOF when reading a line" The same issued occured when I was running other apps on 'code playground'. Could the issue be with my phone or are there some settings I could configure?
2 ответов
+ 10
The method of compiling this app uses requires that you give all the needed inputs at once, because it's not real-time.
Your code is compiled and run on a server, and the inputs you send with it are used to simulate user input. What you get sent back is the end result with those inputs.
On that prompt window, write one input for every input statement. Separate every input with a new line.
+ 3
http://www.sololearn.com/app/sololearn/playground/cmrbLtdh3RhN/
You can! Just input all required strings at the beginning on different lines. In my code you can input 2 strings in 2 lines.