Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 months ago.
Improve this question
Write a Python program that takes the user's name as input and displays and welcomes them.
Expected behaviour:
Enter your name: Nimal
Welcome Nimal
The Python code for taking the input and displaying the output is already provided.
answer for this code!
name = input("Enter your name: ")
print("Welcome", name)
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
Say the user inputs a wrong question and I want to give them 3 chances before it terminates/loses the game. Can I use "if" in that case? How do I structure it where if they input "yes" or want to try again, they'll be able to answer the question till the strikeout?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I tryvto make virtual keyboard
It work But the problem is when I try to write with it
It's right hereenter image description here
What I actually want is to wrte In real desktop program like word ,note and so on
Please tell me if you want the code
Oh how can I fix it
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
Only use print("") to write this code.
Write a program that prints out the requested information above, similar to below:
My Name: Jason Newton
Element: Carbonated Soda-type
Target Number: 7
Hobby: Video Gaming
just take the answer:
print("""\
My Name: Jason Newton
Element: Carbonated Soda-type
Target Number: 7
Hobby: Video Gaming""")
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
For example, when I tried to get the user's username, this happens: Hello, [{'users': 'username'}]
How can I remove the rest, and get only the username?
appreciate the help!
Your question isn't clear
So, in order to get the username. First we need to iterate. Like this:
val = [{'users': 'username'}]
for values in val:
print(values["users"])
So this prints the 'username' in the dictionary.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Right after I start my PYTHON code my comand prompt exits.I can't even test it out or see the result becaues it exits too fast.Any help?
Add
input("Press Enter to continue...")
to the end of your file. It will wait for you to press Enter.