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....
3 ответов
+ 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.
+ 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
+ 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