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

Taught in

References