Download and install Python 3 first if it’s not already installed.
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