Python vscode basics

I can’t create virtual environment in vs code but the print statement works.

It is often better to use the py command on windows and python is not setup to work by default.

There is useful infomation for using python on windows in the documentation here: 4. Using Python on Windows — Python 3.12.1 documentation

Using Python on Windows involves certain considerations that differ from Unix systems. Windows does not come with a system-supported installation of Python, but the CPython team provides Windows installers (MSI packages) for each release, intended primarily for a per-user installation. Python 3.12 supports Windows 8.1 and newer, and for Windows 7, Python 3.8 is recommended

To conveniently run Python from a command prompt in Windows, it’s advisable to configure environment variables. The installer allows setting PATH and PATHEXT variables, which is reliable for a single, system-wide installation. If you use multiple Python versions, consider using the Python Launcher for Windows.

I hope this helps!