Installing
To install the Python interpreter on yourcomputer, follow these steps:
Linux
Run your system's package manager. (On Ubuntu orDebian, I recommend running Synaptic).Find the package for Python 3. On many systems (e.g. Ubuntu) thiswill be called 'python3'. Install it.
macOS
In a web browser, go to the Pythondownload page. Click the button "Download Python 3.10.1"(it may have a larger number if a newer version is available). Whenthe installer finishes downloading, run it, and accept all theinstallation defaults.
Windows
In a web browser, go to the Pythondownload page. Click the button "Download Python 3.10.1"(it may have a larger number if a newer version is available). You'llsee a message "What doyou want to do with python-3.10.1-amd64.exefrom python.org?" Click Run.
You'll now see a window "Install Python3.10.1(64-bit)". In this window, be sure to check the box "AddPython 3.10 to PATH". Now click "Install Now". You'llsee a message "Do you want to allow this app to make changes toyour device?" Click Yes.
Running
To run Python:
Linux
Run a terminal. (On many distributions, you can dothis by pressing the Super key, then typing "terminal"). Inthe terminal window, type "python3" at the shell prompt.
macOS
Run a terminal: press Command + Space, type"terminal", then press Enter. In the terminal window, type"python3" at the shell prompt.
Windows
Run a terminal: press the Windows key, type"command", then press Enter. In the Command Prompt(terminal) window, type "python" at the shell prompt.
All systems
On all the systems above, if your Pythoninstallation is successful, then running Python should result inoutput that looks something like this:
$ python3Python 3.9.7 (default, Sep 10 2021, 14:59:43) [GCC 11.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>>