+ 1
Input on the moment it's get asked, not before
So, every time I use an input (In Python 3) it askes before the output gets shown, what I want to put in. How do I make it that it askes the input after it printed the text I put before it? Like if I write this : print("Hello, what is your name?") name = input Print(name + ", that is a nice name!") I askes first, "You use Input, type what you want to fill in", is their a way to change it, and have that it first prints the question in output, then askes the input and then prints the rest?
4 Réponses
+ 2
meike buysse Your own Python installation would be the best to practice.
+ 1
You can’t do that in SoloLearn; here you must enter all input when it starts. But in general Python will run line by line.
+ 1
What is the best place I can practise my scripts and stuff with Python?
+ 1
I find jupyter notebooks very good for practicing