macOS comes pre-installed with Python2. We need to install and use Python3 as the most up-to-date and supported version of the language implementation.
The above link will take you to a download page. Use this to download and install Python on your computer.
Open up the Terminal and run the following command:
python3 --version # Python 3.11.5
Navigate to the following link and download + install VS Code on your computer.