For questions about Python programming that are specific to version 2.x of the language. Use the more generic [python] tag for all Python questions, and only add this tag if your question is version-specific.
Python 2 is the version of the Python programming language which was for a long time the most widely deployed in production environments; but it is now in the process of being displaced by Python 3. The two versions of the language are not compatible, though many aspects of the syntax are identical. The latest, and last, released version of Python 2 is Python 2.7.18.
Official support for Python 2 has ended on January 1, 2020.
See also Python2 or Python3.
For information on Python in general, visit the main Python tag wiki.
Tagging recommendation:
Use the python tag for all Python related questions. If you believe your question includes issues specific to the incompatible Python 2.x or Python 3.x, in addition to the main python tag, use python-2.x or python-3.x. If you believe your question may be even more specific, you can include a version specific tag such as python-2.7.
Please do not mix python-2.x (or a more specific tag such as python-2.7 and python-3.x (ditto) unless you are specifically asking a question about an interoperability problem between versions.
Community
Free Python Programming Books
- Wikibooks’ Non-Programmers Tutorial for Python
- The Official Python Tutorial
- Building Skills in Python Version 2.6 - Steven F. Lott
- A Byte of Python - Swaroop C H.
- Data Structures and Algorithms in Python - Bruno R. Preiss
- Dive into Python
- Dive into Python 3
- How to Think Like a Computer Scientist: Learning with Python - Allen Downey, Jeff Elkner and Chris Meyers.
- Invent Your Own Computer Games With Python - Al Sweigart
- Learn Python The Hard Way - Zed A. Shaw
- Making Games with Python & Pygame - Albert Sweigart
- Natural Language Processing with Python - Steven Bird, Ewan Klein, and Edward Loper
- Python Bibliotheca
- Python for Fun - Chris Meyers
- Snake Wrangling For Kids - Jason R. Briggs
- Think Python (PDF) - Allen Downey