Can’t get user input in the python code playground to work, am I doing something wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can’t get user input in the python code playground to work, am I doing something wrong?

https://code.sololearn.com/cDGWH0rDIbQs/?ref=app When I run my super simple mad lib program through the code playground it doesn’t tell the user what to input. A box just pops up saying input is required, but not any info on what information to input. How do I get this code to work? It should say things like “Enter an adjective:” or “Enter a noun.”

10th May 2019, 11:03 PM
Kaleigh Hobbs
Kaleigh Hobbs - avatar
2 Answers
+ 5
That's working as intended. On SoloLearn code playground, you can only input at the start of the code. To do multiple inputs, you as a user must do a new line (press enter).
10th May 2019, 11:06 PM
Ahri Fox
Ahri Fox - avatar
+ 1
In the codeplayground on sololearn those messages aren't shown until the the program run, which requires input to be set imediently. It's propably easier and more efficient this way...
10th May 2019, 11:10 PM
Anton Böhler
Anton Böhler - avatar