+ 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

29th Apr 2021, 5:16 AM
Himanshu Kumar
Himanshu Kumar - avatar
2 Answers
+ 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
29th Apr 2021, 6:12 AM
XXX
XXX - avatar
+ 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
29th Apr 2021, 5:29 AM
Erlénio.RS
Erlénio.RS - avatar