how do i ask the user seperate inputs at different times? on sololearn, it only asks at the beginning, but not during the progra | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do i ask the user seperate inputs at different times? on sololearn, it only asks at the beginning, but not during the progra

how....

31st Jan 2023, 12:57 PM
Josh Margulies
Josh Margulies - avatar
3 Answers
+ 4
On sololearn Python playground we need to submit ALL inputs at the beginning. We cannot pause or delay code execution or submit input at later times.
31st Jan 2023, 1:00 PM
Lisa
Lisa - avatar
+ 3
…following on to Lisa’s answer, you can still use multiple inputs (at different times) on Sololearn. You just gave to provide all inputs up front (seperated on a new line). So for example if your code was: a = input() print(a) b = input() print(b) You would specify the input at the start like so: first second
31st Jan 2023, 1:08 PM
DavX
DavX - avatar
+ 3
If you want to use Python more interactively specifically on Sololearn, you can for example also consider using Brython. Simple example: https://code.sololearn.com/Wuc68F71uF8o/?ref=app Complicated example: https://code.sololearn.com/W5v76nCjupV7/?ref=app
31st Jan 2023, 3:42 PM
HonFu
HonFu - avatar