Is Python already purring on your system?
We can check whether Python is already curled up inside your computer – yes, I just mean installed. In the terminal, type the following commands and press Enter. These commands are like asking, “Hey computer, do we have Python here? If so, which version?”
On Windows, it is probably not installed:
python --version
If that doesn’t give a number, try the following:
py --version
On macOS/Linux, there might be a different version – for example, 2.7. In order to find that out, run the following:
python --version
If that doesn’t give a version number that starts with a 3, try typing the following:
python3 --version
If you need to add the 3, that’s no problem; python3 ensures you’re using Python 3. It’s like making sure your human is opening the right can of food (clearly tuna), not the old sardines.
The syntax of Python 2 is very different from...