0

How do you print then ask for user input in python?

19th Dec 2019, 5:30 PM
slik
21 Answers
+ 6
You should describe your problem a bit more in detail. Can you show us what you have done in code so far?
19th Dec 2019, 5:58 PM
Lothar
Lothar - avatar
+ 4
It can be done thies way Userin=input ("enter your name")
20th Dec 2019, 10:21 AM
Vijay(v-star🌟)
Vijay(v-star🌟) - avatar
+ 4
Use a print() statement followed by an input() statement.
20th Dec 2019, 10:03 PM
Sonic
Sonic - avatar
+ 3
slik, your code works. I try it and it's ok.
19th Dec 2019, 7:02 PM
Elen V
Elen V - avatar
+ 2
Here is the lesson: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2426/ I am sorry but I can't explain you something more, because I don't understand what exactly did you ask. Can you explain your question?
19th Dec 2019, 6:04 PM
Elen V
Elen V - avatar
+ 2
slik It was ok to me. I press run then it asks me to input something i write yes or no and it gives me Ok then or What are you doing here then. What a shame it doesn't run to you. It's a nice code👍
19th Dec 2019, 8:28 PM
Elen V
Elen V - avatar
+ 1
You're welcome.
19th Dec 2019, 7:18 PM
Njeri
Njeri - avatar
+ 1
I am using Pydroid 3 and it is an AMAZING IDE for ANDROID!
25th Dec 2019, 5:52 PM
slik
+ 1
Elen V it is meant to output first then ask for input. Thanks but I found a better IDE on Google Play Store. It works fine there. It is called Pydroid 3 for Android and I really recommend it.
25th Dec 2019, 5:55 PM
slik
0
Lothar and Elen V here it is. It will ask for user input before printing anything.
19th Dec 2019, 6:55 PM
slik
0
It is not working for me. When I press 'run' it will automatically say, 'it seems your program requires user input to run'. How to fix pls?
19th Dec 2019, 7:07 PM
slik
0
What happens when YOU press RUN?
19th Dec 2019, 7:09 PM
slik
0
Unfortunately you can't fix that in SoloLearn because of how inputs work here. In the Code Playground all inputs are taken at once at the start, so things will only be printed after you enter the input.
19th Dec 2019, 7:10 PM
Njeri
Njeri - avatar
0
Ok. Do you recommend any mobile apps where I can code?
19th Dec 2019, 7:13 PM
slik
0
I don't have PC or laptop. All I have is really bad tablet running Android Lollipop or Android 5.1.1
19th Dec 2019, 7:15 PM
slik
0
I don't know of any as I've only used SoloLearn but hopefully someone else in the community can suggest some.
19th Dec 2019, 7:15 PM
Njeri
Njeri - avatar
0
Elen V What did you mean when my code worked fine?
19th Dec 2019, 7:15 PM
slik
0
Njeri Thanks for the help man/woman (I don't discriminate between genders)
19th Dec 2019, 7:16 PM
slik
0
You can just put your text in the input() function Example: Name = input('Please enter your name')
20th Dec 2019, 10:37 AM
Vlad
Vlad - avatar