[python] How to keep a Python script output window open?

You can just write

input()

at the end of your code

therefore when you run you script it will wait for you to enter something

{ENTER for example}