+ 1
Why are a lot of python scripts not running properly in Solo Learn?
I have problems with the input function. https://code.sololearn.com/cP4dgrw9c153/?ref=app
3 odpowiedzi
+ 5
Hellodarknessmyoldfriend , yes the input procedure in playground is a bit special if multiple inputs are required. But we have to distinguish if the inputs are required sequentially or in a loop.
Sequentially inputs can be given in the input window by using a new line for each of them. In this case the number of inputs is known - so this is not a problem.
When input is included in a loop, we may not know how often they are executed. In this case we could also give input in separate lines, but it makes not really sense. This kind of input can not be handled properly by playground.
The reason is how the communication between the clients and the sololearn server is working. It is not interactive, because the very high number of participants would cause problems in memory and response time.
I personally don't think that's appropriate to say that " ... a lot of python scripts are not running properly..."
You can run your codes that struggle in playground in your local device with an installed IDE.
+ 3
Because sololearn wants ALL inputs given at one time. This makes turn based games difficult to play on this platform
+ 1
Due to input it doesn't work properly 🙁🙁.....