Comment about Python versions.

This commit is contained in:
Hankai Zhang 2020-07-14 16:11:49 -04:00
parent 9cc3a772f4
commit 083b24b279

View file

@ -11,7 +11,11 @@ Download Python through [the official website](https://python.org).
On Windows and Mac, you can download executable files directly; on Linux, you must either download the Python source code and compile from source, or obtain Python through your package manager.
Make sure that you are using the correct version of Python. Python 2 is quite different from Python 3 (but parts of the version number beyond 2. or 3. does not matter much). **This can matter when using the command line to run Python;** sometimes, 'python3' must be used instead of 'python' in order to run Python 3. Try both commands, and pay attention to the version that Python prints, to determine if this is the case on your system.
Make sure that you are using the correct version of Python. Python 2 is quite different from Python 3 (but parts of the version number beyond 2. or 3. does not matter much).
We generally recommend newcomers to Python to use Python 3, but if you are used to programming in Python 2, that is OK too.
**The Python version can matter when using the command line to run Python;** sometimes, 'python3' must be used instead of 'python' in order to run Python 3. Try both commands, and pay attention to the version that Python prints, to determine if this is the case on your system.
Python comes with a program, known as IDLE (Integrated Development and Learning Environment), that allows one to write and run Python code. It supports many features, such as syntax highlighting and automatic indentation, that one would normally expect from an IDE/text editor. However, feel free to use another editor or IDE if you want to.