Why don't show the texts and the input request together? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why don't show the texts and the input request together?

I've written some codes and when I run them it pops up a text bar where I have to insert the input, but it don't shows me any of the texts that are needed to understand what's happening. An example on Python: print("Welcome to the main center of spacial travels.") destination = input("\nIf you want to go to Mars, insert 1;\nIf you want to go to the sun, insert 2.") If I run a code like that, none of the texts will be displayed before the input request pops up. So, when an user execute this code, it's not possible to understand that what's happening.

17th Jul 2019, 8:53 PM
Passarinho
2 Answers
0
Just on Sololearn. If u run this on a python shell or some text editor, u will see the the texts first.
17th Jul 2019, 8:56 PM
Mauricio De Martino
Mauricio De Martino - avatar
0
O sistema que a Sololearn usa é desse jeito, mas normalmente vc veria a pergunta antes do input.
17th Jul 2019, 8:59 PM
Mauricio De Martino
Mauricio De Martino - avatar