Before installing Python first check if you already have it.
Depending on your operating system, follow these steps:
Windows: Press Win + R to open the Run dialog. Type cmd and press Enter. This will open the Command Prompt. macOS: Press Cmd + Space to open Spotlight Search. Type Terminal and press Enter. This will open the Terminal application. Linux: Press Ctrl + Alt + T to open the Terminal.
For better command line tools you can install both Microsoft PowerShell (not windows powershell) and Microsoft Terminal. These two tools are updates and are better than the built in ones.