Why are a lot of python scripts not running properly in Solo Learn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

29th Nov 2020, 2:48 PM
Overthrow
Overthrow - avatar
3 Answers
+ 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.
29th Nov 2020, 3:09 PM
Lothar
Lothar - avatar
+ 3
Because sololearn wants ALL inputs given at one time. This makes turn based games difficult to play on this platform
29th Nov 2020, 3:01 PM
Steven M
Steven M - avatar
+ 1
Due to input it doesn't work properly 🙁🙁.....
30th Nov 2020, 8:30 AM
Sayyam Jain
Sayyam Jain - avatar