+ 4
In sololearn Python input Field is weird why?
in my desktop pycharm take input in different way but in my mobile sololearn take input in different way, why? even we don't able to know that what to input? or how many input are required
2 ответов
+ 3
Sololearn sends your code to remote servers, runs it, gets the output and displays it to your screen. As your code is not run on your device, there is no way to give input interactively. It is impossible for SoloLearn to figure out how many inputs will be required or what will be printed in between the inputs. So SoloLearn has to rely on the user to enter the correct input all at once. After all, you can't expect the experience of coding on a phone to be as good as coding on your computer.
Whenever a program requires input, it is a common practise to show the format of the input in comments in the topmost lines of the code. This way, the person running your code knows what how the input has to be given.
How to enter input:
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 2
as it is, many mobile compilers work like this. why, I don't know.
But if you want to test multiple inputs using a mobile phone, use Dcoder