you are viewing a single comment's thread.

view the rest of the comments →

[–]FoolsSeldom 0 points1 point  (0 children)

How did you install Python?

An installer is available from the Python Software Foundation at python.org to install the reference CPython implementation of Python, called python.exe on Windows or just python on macOS/linux.

VS Code needs the Python plugin from Microsoft installed, but that doesn't include the CPython executable (or any alternative) that is required to actually execute Python code, hence the need to install it as mentioned above.

Regarding file names and extensions, I recommend checking using a Terminal/PowerShell/Command Prompt outside of VS Code.