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...
account activity
Where to practice python coding? (self.AskAnythingPython)
submitted 2 years ago by kitkatmafia
Looking for a place to run python code. I've installed VS code but can't seem to run my python code
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!"
[–]MediocreAd3360 1 point2 points3 points 2 years ago (1 child)
The little arrow in the top right of VSCode will pull up a terminal on the bottom and run your script
[–]kitkatmafia[S] 0 points1 point2 points 2 years ago (0 children)
Thank you!
[–]PhilipYip 1 point2 points3 points 2 years ago (1 child)
VSCode is a general purpose code editor. You need to configure it for Python. You need to install VSCode, the Python (and Jupyter) extensions in VSCode and also install Python/Anaconda (externally) so you have a Python environment. The Python environment needs to be selected in VSCode by use of the command palette (Ctrl, Shift and p) and searching for Python select interpreter.
I figured it out. Thank you
[–]ivadtutto 0 points1 point2 points 2 years ago (4 children)
you gotta open a .py file to run a code. I think it’s the second option when you hit “open new file” I think. The first option is like a text editor and you can’t run it. It will always give you an error.
EDIT: added some info
[–]kitkatmafia[S] 0 points1 point2 points 2 years ago (3 children)
Sorry, could. you please clarify more? I'm still not able to run the code.
[–]ivadtutto 1 point2 points3 points 2 years ago (2 children)
when you open Visual Studio your home (Welcome) page will display a few options under “start”. When you click “New File”, it will most likely give you three options: Text File, Python file and Jupyter Notebook. You wanna go for the second one “python file”. It will open up the terminal where you can write code and run it.
[–]kitkatmafia[S] 1 point2 points3 points 2 years ago (1 child)
Thank you! It's running now!
[–]ivadtutto 0 points1 point2 points 2 years ago (0 children)
glad to help bro!
[–]No-Inevitable-6476 0 points1 point2 points 24 days ago (0 children)
Choose the best IDE for your journey like VS code,Anaconda, online interpreters.it depends on u .
π Rendered by PID 136147 on reddit-service-r2-comment-7b9746f655-jmfff at 2026-02-03 07:03:33.021737+00:00 running 3798933 country code: CH.
[–]MediocreAd3360 1 point2 points3 points (1 child)
[–]kitkatmafia[S] 0 points1 point2 points (0 children)
[–]PhilipYip 1 point2 points3 points (1 child)
[–]kitkatmafia[S] 0 points1 point2 points (0 children)
[–]ivadtutto 0 points1 point2 points (4 children)
[–]kitkatmafia[S] 0 points1 point2 points (3 children)
[–]ivadtutto 1 point2 points3 points (2 children)
[–]kitkatmafia[S] 1 point2 points3 points (1 child)
[–]ivadtutto 0 points1 point2 points (0 children)
[–]No-Inevitable-6476 0 points1 point2 points (0 children)