Meaningful input prompt would be a big help | Sololearn: Learn to code for FREE!
+ 11

Meaningful input prompt would be a big help

It would be nice if there was a way to display the coder's input prompts when running a code in the Code Playground. When you run a code that requires end user input, you just get the popup input window with the annoying "Seems like your program requires input Split multiple entries into separate lines" Which is OK, i guess, if it's your own code or the code is really simple and obvious, like first_name = input("Please enter your first name: ") last_name = input("Please enter your last name: ") print("Thank you,", first_name, last_name + "!") But if it's long or complex, you have to read through the whole code and if multiple inputs are required, remember them. I love trying out other coders' codes, but this input thing makes it darned difficult without copying the code and pasting it elsewhere to run it, rather than simply clicking "Run". Is there any way for SL to substitute the coder's input prompts for the generic "Seems like your program requires input", possibly in sequential popup windows, one for each input required?

13th May 2017, 8:45 PM
David Ashton
David Ashton - avatar
6 Réponses
+ 14
@David There was another thread, in which was explained, that the data has to be send to SoloLearn servers and that is the reason you have to input everything at the beginning, but I couldn't find it. The code and the input is sent to the server, compiled, run and then the output is sent back. If they changed it to the order the code is written in, this could mean: Send to the server, compile and run to the point where output or input is coded, send back, provide output or take input, send back to the server.... and so on. So I somehow understand that it is like it is... What doesn't mean I like it ;)
13th May 2017, 7:07 PM
Tashi N
Tashi N - avatar
+ 10
Unfortunately it's not possible. I hope SoloLearn will find a better way... https://www.sololearn.com/discuss/217079/?ref=app
13th May 2017, 6:57 PM
Tashi N
Tashi N - avatar
+ 9
@Tashi I guess that makes sense. Otherwise there would have to be somewhere locally to temporarily store the input variable values, like on the user's device. [edit] On second thought, that would still have to flip flop to the SL server. The code would have to run on the user's device, meaning each language would have to be installed on the device, which kind of defeats the purpose of a code playground. Oh well.... :/
13th May 2017, 7:23 PM
David Ashton
David Ashton - avatar
+ 7
Thanks Tashi, I missed that thread.
13th May 2017, 7:00 PM
David Ashton
David Ashton - avatar
13th May 2017, 10:07 PM
STAPS Guru
STAPS Guru - avatar
- 1
u8jj
14th Jun 2017, 9:14 PM
SO-Berk
SO-Berk - avatar