If you’re using Linux you should already have Python installed, though it may be an older version. You can also download binaries for Linux and various operating systems such as Windows and Mac from https://www.python.org/.
There are literally dozens of different ways to install Python. For example, if you’re using Ubuntu, rather than directly downloading binaries, you could simply type:
sudo apt-get update
sudo apt-get install python3
If you’re using Windows or MacOS, you can download the proper installer and run it just like any other installer.
Either way, the important thing is to ensure that you’re using a version of Python 3 so that you can follow along with the code examples. Python 2 is still available, but there are important syntax changes between the two.
To ensure you’re using the right version, type: