Python 2
The older major version of Python, replaced by Python 3 and unsupported since January 2020.
Python 2 gets no security fixes, so programs still running on it carry known, unpatched flaws.
In more detail
Python 3 fixed long-standing design problems but was deliberately not compatible, so code and instructions written for Python 2 often fail on Python 3. The most visible difference is that print was a statement in Python 2 and is a function in Python 3. There is no reason to learn or install Python 2 today.
Related terms
- Python 3 — The current major version of the Python language, first released in 2008, which this course teaches.
- print() — The built-in function that writes values to the screen, separated by spaces and followed by a newline.
Taught in
- What Python Is, And Where It Came From — Hands-on Python: Complete Video Course & Book
- Where Python Lives: PATH And Versions — Hands-on Python: Complete Video Course & Book
- First Run, And Fixing A Broken Install — Hands-on Python: Complete Video Course & Book
- A Sample Program, Explained — Hands-on Python: Complete Video Course & Book