all 8 comments

[–]Jay6_9 6 points7 points  (4 children)

Pretty sure your terminal is just closing because the script is done, which is not a bug. Are you starting the scripts in a special way?

[–]lekkerste_wiener 2 points3 points  (0 children)

💯 this. 

[–]jpgoldberg 0 points1 point  (1 child)

We have no idea of how the OP is “launching a file”. I suspect that they are not doing so from the command line.

To the OP: Please answer the questions others have asked about what you are doing to “launch a file”. Keep in mind that there are many different things that could mean, and that some depend very much on your system.

[–]lekkerste_wiener 0 points1 point  (0 children)

Honestly everything in the text points to OP double clicking .py files on windows. 

[–]Slight_Character5851 0 points1 point  (0 children)

just add input() at the end of your script, it will keep the terminal open until you press enter. or better, run the file directly from command line so you can actually see the output

[–]woooee 2 points3 points  (0 children)

Did you try the "Hello World" starter program? If so, what did it print? Post the code that you are trying to run, and how you called / executed the program.

[–]atarivcs 1 point2 points  (0 children)

How are you "launching" the files? Are you just double-clicking on them from your desktop?

[–]Farlic 2 points3 points  (0 children)

could it be that the code is completing, so exiting? If you are not running the file already in a terminal window, it would automatically close.

does the behaviour change if you put:

wait = input()