How to make a python script wait for a pressed key?
In Python 3 use input(): In Python 2 use raw_input(): This only waits for the user to press enter though. One might want to use msvcrt ((Windows/DOS only) The msvcrt module gives you access to a number of functions in the Microsoft Visual C/C++ Runtime Library (MSVCRT)): This should wait for a key press. Additional … Read more