/bin/sh: python: command not found

Hello SyntaxError, it looks to me like you forgot to install python on your MacBook Air. Here are some generic instructions for installing Python on Mac: 5. Using Python on a Mac — Python 3.10.5 documentation

Alternatively, it is possible that VSCode is looking for the python binary in the wrong place. Here are the instructions for running Python in VSCode: Get Started Tutorial for Python in Visual Studio Code