0

Output before input

Is there any way to first let user see the output, and only then ask for user input in Python?

15th Aug 2018, 6:49 PM
Artem Khaiet
Artem Khaiet - avatar
2 Respuestas
+ 3
Not on sololearn, but very easily in your own .py file
15th Aug 2018, 6:51 PM
Just A Rather Ridiculously Long Username
+ 3
Yes, it's totally normal to do that, but this isn't supported in Code Playground because it takes all the inputs before execution. If you switch to a real Py console you'll have no problems with that.
15th Aug 2018, 6:52 PM
Tim Thuma
Tim Thuma - avatar