+ 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?

15th Jun 2018, 7:24 PM
meike buysse
meike buysse - avatar
4 Antworten
+ 2
meike buysse Your own Python installation would be the best to practice.
15th Jun 2018, 8:46 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 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.
15th Jun 2018, 8:37 PM
Pedro Demingos
Pedro Demingos - avatar
+ 1
What is the best place I can practise my scripts and stuff with Python?
15th Jun 2018, 8:38 PM
meike buysse
meike buysse - avatar
+ 1
I find jupyter notebooks very good for practicing
16th Jun 2018, 2:29 AM
Pedro Demingos
Pedro Demingos - avatar