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.
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 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 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)
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 1 year ago.
Improve this question
I am creating a simple game that will have the character die a lot, and as a consequence will end the game. how can i make it to have something like pressing the space bar restarts the file or something along those lines? It's a very simple file, so i am just looking for a simple solution.
You could wrap your script in a
while True:
...
block, or with a bash script:
while true ; do
yourpythonscript.py
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 years ago.
Improve this question
spam = ['cat','dog','bat']
spam.insert(0,'poo')
spam
this is my code, why is there nothing showing after I run this program?
Use
print(spam)
to show the content of "spam". Writing "spam" won't change anything.
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 5 years ago.
Improve this question
I want to detect when a button is being pressed anytime when my python3.4 program is running. How do I do it without taking text input?
Use a OS-level hotkey. How that's done will depend on your OS.