Download and install Python 3 first if it’s not already installed.
Once Python is installed restart your computer before moving to the next step.
Download Visual Studio Code if you don’t already have it.
Open Visual Studio Code
Install the Python extension.
Click the icon below to access the Extensions tab.
Install the Microsoft Python extension as shown below.
You are now ready to use Python with Visual Studio Code