+ 2

Why must all inputs be entered before running the code?!

I have tried to make games in Python, but I have found that it is impossible to make interactive content in sololearn because all inputs must be entered before the program runs. This makes it impossible to make any reasonable games without making a web(edited. did say Java) game. Is there are reason for this bs?

20th Jun 2017, 1:21 AM
chessmonster
chessmonster - avatar
3 Réponses
+ 2
It's a sololearn playground limitation. Java is the same way
20th Jun 2017, 1:22 AM
LordHill
LordHill - avatar
0
As mentioned, SoloLearn has its limitations. For instance, take a look at my Java program: https://code.sololearn.com/ccZ29aII5RP0/#java Line 26: "System.out.printf("You have selected the radius: %.0f\n" , radius);" My initial idea was to print out "Please select the radius:", but since all inputs must be entered before runtime, I had to do it in a different way, as shown above. Hopefully that'll be changed soon.
20th Jun 2017, 1:34 AM
Jamie Isaksen
Jamie Isaksen - avatar
0
this may be because the playground treats the programs as if they take command line arguments. makes life easy for such projects.
20th Jun 2017, 3:24 AM
Venkatesh Pitta
Venkatesh Pitta - avatar