Once the extension is installed, you’ll need to configure VS Code to use the Python interpreter that you installed in Step 1. To do this, click on the “Command Palette” (Ctrl+Shift+P) and search for “Python: Select Interpreter”. Select the Python interpreter that you installed in Step 1.
Follow these steps :
1. Install the Python extension: Open VS Code, click on the Extensions icon on the left sidebar (or press Ctrl+Shift+X), search for “Python” in the Extensions Marketplace, and click on the “Install” button next to the “Python” extension by Microsoft.