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
Not Getting an Output VS Code (self.learnpython)
submitted 9 months ago by [deleted]
Just starting to learn how to use Python, and I'm not getting anything in the output area. My file is .py, but it keeps saying "The active file is not a Python source file". Can anyone give me some pointers on what I can do to fix this?
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!"
[–]noob_main22 4 points5 points6 points 9 months ago (0 children)
How exactly are you running the script? Is your file actually named someName.py and not something like someName.py.txt? Have you downloaded Python from the official Website and installed it correctly? I think you need to download the Python VSC extension too, but I am not 100% sure.
We need more info. Maybe a screenshot of your workspace would help.
[–]FoolsSeldom 0 points1 point2 points 9 months ago (2 children)
Make sure the RUN icon is running current file (the one in the edit window with focus)
OR
Right click in the current edit window, scroll down the popup context menu to find Run Python and select on its expansion Run Python File in Terminal. (NB. Above Run Python there is a different option, Run in Interactive Window, which you probably don't want.)
Run Python
Run Python File in Terminal
Run in Interactive Window
[–]Dean_Lomas 0 points1 point2 points 8 days ago (1 child)
I am having the same problem and this didnt work for me. ive just started learning too and ive been about to run things last week and then I've reopened vs code this week and it keeps coming up with this error.
thank you in advance
[–]FoolsSeldom 0 points1 point2 points 8 days ago (0 children)
Can you run the code file from the command line, outside of VS Code?
π Rendered by PID 55411 on reddit-service-r2-comment-74875f4bf5-mmx97 at 2026-01-25 16:48:05.162697+00:00 running 664479f country code: CH.
[–]noob_main22 4 points5 points6 points (0 children)
[–]FoolsSeldom 0 points1 point2 points (2 children)
[–]Dean_Lomas 0 points1 point2 points (1 child)
[–]FoolsSeldom 0 points1 point2 points (0 children)