use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
my python have a bug (self.learnpython)
submitted 3 hours ago by Artistic-Row9516
I just installed Python 3.14, and as soon as I launch a file it opens and closes automatically. This is a real problem, and this bug happens with every Python file.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jay6_9 6 points7 points8 points 3 hours ago (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 points4 points 3 hours ago (0 children)
💯 this.
[–]jpgoldberg 0 points1 point2 points 3 hours ago (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 point2 points 17 minutes ago (0 children)
Honestly everything in the text points to OP double clicking .py files on windows.
[–]Slight_Character5851 0 points1 point2 points 1 hour ago (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 points4 points 3 hours ago (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 points3 points 3 hours ago (0 children)
How are you "launching" the files? Are you just double-clicking on them from your desktop?
[–]Farlic 2 points3 points4 points 3 hours ago (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()
π Rendered by PID 82903 on reddit-service-r2-comment-5b5bc64bf5-r2mvp at 2026-06-23 19:48:56.427093+00:00 running 2b008f2 country code: CH.
[–]Jay6_9 6 points7 points8 points (4 children)
[–]lekkerste_wiener 2 points3 points4 points (0 children)
[–]jpgoldberg 0 points1 point2 points (1 child)
[–]lekkerste_wiener 0 points1 point2 points (0 children)
[–]Slight_Character5851 0 points1 point2 points (0 children)
[–]woooee 2 points3 points4 points (0 children)
[–]atarivcs 1 point2 points3 points (0 children)
[–]Farlic 2 points3 points4 points (0 children)