0
How do you print then ask for user input in python?
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?
+ 4
It can be done thies way
Userin=input ("enter your name")
+ 4
Use a print() statement followed by an input() statement.
+ 3
slik, your code works. I try it and it's ok.
+ 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?
+ 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👍
+ 1
You're welcome.
+ 1
I am using Pydroid 3 and it is an AMAZING IDE for ANDROID!
+ 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.
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?
0
What happens when YOU press RUN?
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.
0
Ok. Do you recommend any mobile apps where I can code?
0
I don't have PC or laptop. All I have is really bad tablet running Android Lollipop or Android 5.1.1
0
I don't know of any as I've only used SoloLearn but hopefully someone else in the community can suggest some.
0
Elen V What did you mean when my code worked fine?
0
Njeri Thanks for the help man/woman (I don't discriminate between genders)
0
You can just put your text in the input() function
Example:
Name = input('Please enter your name')