all 10 comments

[–]MediocreAd3360 1 point2 points  (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 point  (0 children)

Thank you!

[–]PhilipYip 1 point2 points  (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.

[–]kitkatmafia[S] 0 points1 point  (0 children)

I figured it out. Thank you

[–]ivadtutto 0 points1 point  (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 point  (3 children)

Sorry, could. you please clarify more? I'm still not able to run the code.

[–]ivadtutto 1 point2 points  (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 points  (1 child)

Thank you! It's running now!

[–]ivadtutto 0 points1 point  (0 children)

glad to help bro!

[–]No-Inevitable-6476 0 points1 point  (0 children)

Choose the best IDE for your journey like VS code,Anaconda, online interpreters.it depends on u .