So I've encountered a problem.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So I've encountered a problem....

When I'm trying to write a code with an input, the code asks for the input before running the code. Basically, I want to be able to read the output before answering the input. What can I do? And did any of that make sense?

3rd Sep 2017, 7:25 PM
Stef
Stef - avatar
5 Answers
+ 3
As previously said, run your Python code locally rather than through playground (where code is send to server to be executed, and result of execution is back send to your device)... You can use a Python interpreter on desktop, or install some application embeding Python on mobile device: I will advice to get QPython (there's two flavors, with Python 2 OR Python 3), even if there's some more limitations than for desktop 'classic'/'normal'/'real' Python interpreter, that's more efficient and less limited than code playground (real in/output interractivity, more modules importable, some more are even installable, even if some still aren't supported) ^^
4th Sep 2017, 6:56 AM
visph
visph - avatar
+ 1
The only thing you can do is running your code on another ide ... You just discovered one of the biggest issue with sololearn ...
3rd Sep 2017, 7:27 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
Sololearn requires you to enter all of the input before running the code. IDE means interactive development environment, or something like that. And it is just like it sounds like, interactive. If you want it to be interactive, you need a real IDE. So you have to download a separate app for this.
4th Sep 2017, 2:27 AM
chessmonster
chessmonster - avatar
0
ide?
3rd Sep 2017, 9:07 PM
Stef
Stef - avatar
0
Thank you all!
5th Sep 2017, 12:19 AM
Stef
Stef - avatar