+ 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?
3 Respuestas
+ 2
It's a sololearn playground limitation. Java is the same way
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.
0
this may be because the playground treats the programs as if they take command line arguments.
makes life easy for such projects.