Install the basics
Install Python from its official source and add the official Python extension to VS Code. Open a project folder rather than individual files.
Use a project environment
A separate environment keeps one project's packages from affecting another.
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
Format and check your code
Use a formatter and a code checker consistently. Automatic formatting on save can keep attention on the behaviour of the program.
Keep the setup focused
Add extensions only when they solve a clear need.

