How to add a "Press enter to close this window" message to your Python script

Just add this line at the bottom of your Python script:

input("Press Enter to close this window...")

Python 2 variant:

raw_input("Press Enter to close this window...")