Python doesn't give input string in playground | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Python doesn't give input string in playground

If I run my python codes on the computer and I have for exampel input("how are you") it will print 'how are you' and then I can enter something. But if I do this in the solo Learn playground it doesn't say 'how are you' it just says 'looks like your program needs input...' I also need several inputs after each other and that doesn't work in soloLearn

21st Mar 2019, 9:44 AM
anonymous
anonymous - avatar
4 Answers
+ 8
hi - yes working with playground is a litle different with input as on your local computer. If your code has one or multiple input, the special input window from playground pops up. You have to enter all your inputs there. The question you have coded with input function will not be displayed at that stage. It will be displayed after you have closed input window with submit. Input window will always be the first step in running the code. I think ther is no work around.
21st Mar 2019, 9:59 AM
Lothar
Lothar - avatar
+ 8
Code playground of sololearn isn't editor here you can practice what you've learned and it doesn't matter if it will appear or not you'll see it on the terminal after running it. Take it easy. //i hope you get it😊😊😁
21st Mar 2019, 10:02 AM
Max Andal
Max Andal - avatar
+ 4
anonymous sololearn playground is different your computer ide. In sololearn playground you code when you run it then this code execute on sololearn servers and then give you output.which is not real time that's the reason behind it.if you want ide in mobile like computer then download Pydroid 3 from play store which is free and it works like computer python ide.
21st Mar 2019, 1:13 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Hm okay thanks then I can't use playground for my code because it's a program for learning vocabulary so seeing the input string is necessary, still thank you
21st Mar 2019, 10:07 AM
anonymous
anonymous - avatar