macOS has Python 2.7 pre-installed, you don't need Python 3.X (yet).
Additionally, install (in order):
- Xcode (including command line tools)
- Homebrew (a package manager)
- Sublime Text (or TextWrangler)
Writing the syntax in Sublime Text, you need to select the build system (python), and build (=run) the code. The output is giving in the console. Code is straightforward, but graphic capabilities are poor.
Source: https://www.macworld.co.uk/how-to/mac/coding-with-python-on-mac-3635912/
Source: https://www.macworld.co.uk/how-to/mac/coding-with-python-on-mac-3635912/