Why can't I request multiple inputs? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

28th Nov 2016, 11:39 PM
Wong Kin Hou
Wong Kin Hou - avatar
2 Answers
+ 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.
28th Nov 2016, 11:47 PM
Tamra
Tamra - avatar
+ 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.
29th Nov 2016, 12:39 AM
ordens
ordens - avatar