How to pause execution (on windows)? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to pause execution (on windows)? (/thread-40225.html) |
How to pause execution (on windows)? - pstein - Jun-23-2023 Assume I have created a *.py script (on windows). If I double click on it it is executed. But the command prompt windows vanishes immediately. I cannot read output. I need to write a kind of "pause" command into *.py script file to pause execution and let me read what is previously printed. When I hit RETURN the processing should be resumed. How can I achieve this? RE: How to pause execution (on windows)? - rob101 - Jun-23-2023 Introduce a simple user input that does nothing: input("Press enter to continue") |