Think Python: second or third edition for a beginner?

Key points

Both editions are free and both use Python 3: what is the choice?

Both editions are free to read in full online: the third edition has an online book site, while the second edition’s Green Tea Press page links to HTML and PDF versions. Choose the third edition if you want its integrated notebook format and added topics; choose the second if its HTML or PDF presentation and PythonAnywhere instructions match how you want to begin.

Think Python is an introduction to Python programming for beginners.

The choice is between different editions of that introduction, with different learning formats and stated revisions. It is not a choice between learning Python 2 and Python 3: Green Tea Press explicitly says that the second and third editions both use Python 3.

Their descriptions also share an instructional foundation. Each starts with basic programming concepts, defines terms when they first appear, and develops concepts in a logical progression. Recursion and object-oriented programming are introduced through smaller steps across several chapters. The third edition therefore retains the stated beginner audience while changing how readers work through the book.

What the third-edition pages say

Green Tea Press describes the third edition’s notebook format in concrete terms:

Each chapter of the book is a Jupyter notebook, so you can read the text, run the code, and work on the exercises, all in one place.

Source: Green Tea Press’s third-edition page, retrieved 2026-10-26.

The same page says the notebooks run on Colab, so readers do not have to install anything to get started. The online book’s landing page provides a Colab entry for each chapter. Reading, executing examples, and attempting exercises are thus presented as parts of the same chapter notebook.

The revisions extend beyond presentation. Green Tea Press lists regular expressions and automated testing with doctest and unittest among the new topics. It also says every chapter includes guidance for using AI tools such as ChatGPT to accelerate learning. The online book page locates those suggestions at the end of each chapter and names both ChatGPT and Colab AI.

The book page additionally describes the text as substantially revised, with some chapters reordered and more exercises. Its assessment that many exercises are better is the author’s assessment, rather than a result established by a comparative reading test.

The contents make some of the coverage visible. These entries appear verbatim in the online book’s navigation:

8. Strings and Regular Expressions
12. Text Analysis and Generation
13. Files and Databases

Source: Think Python’s third-edition online contents, retrieved 2026-10-26.

These headings give a prospective reader specific places to inspect. The claim about automated testing comes from the Green Tea Press description; it does not depend on finding a chapter with “testing” in its title.

What the second-edition page says

The second edition’s page offers separate links to download the book as a PDF and read it as HTML. It also points to a repository containing example programs and solutions to some exercises, with instructions for working with the code in the preface.

Its browser-based starting option is PythonAnywhere. Green Tea Press explains that the book provides instructions for readers who do not want to install Python immediately. Browser access is therefore a stated feature of both editions, although the named environments and the descriptions of their use differ.

The second-edition change list says all examples were upgraded to Python 3. It separately says the supporting code was updated to run in both Python 2 and Python 3. Those are distinct statements: the book’s examples use Python 3, while the supporting code is described as accommodating both versions.

The page also describes revisions based on reader feedback and an added chapter covering features including list comprehensions and additional data structures. These are changes described relative to the first edition, not evidence that those topics are absent from the third.

For someone already using the second edition, the page includes a practical link correction. Many links using thinkpython2.com are no longer active; Green Tea Press says replacing thinkpython2 with thinkpython should make them work. That is useful maintenance guidance for continuing with an existing copy.

Source: Green Tea Press’s second-edition page, retrieved 2026-10-26.

The editions compared

The table collects the formats, environments, and revisions explicitly described on the official pages. The quoted topic phrases preserve the wording of their respective descriptions.

Edition Free reading access Named browser environment Topics named in the edition’s change list
Second edition HTML and PDF PythonAnywhere “list comprehensions and additional data structures”
Third edition Online book and Jupyter notebooks Colab “regular expressions and automated testing with doctest and unittest”

Sources: Green Tea Press’s second-edition page and third-edition page, retrieved 2026-10-26.

Read the final column as a comparison of advertised changes. Each page describes what changed for its own edition. The entries do not form an exhaustive inventory of either book.

The most concrete distinction for starting work is the arrangement of reading and programming. The third edition explicitly combines the text, runnable code, and exercises within chapter notebooks. The second-edition page offers reading formats, supporting code, and instructions for a browser programming environment as separate resources.

Both approaches have official starting points that readers can inspect without purchasing a copy. That makes the format itself available for consideration before a buying decision.

Notebook format or HTML and PDF: which route fits?

Start with the free Think Python, third edition if your priority is working through chapters in the notebook format described above. The official page gives a clear route from the chapter list to Colab, and the stated additions include AI learning suggestions, regular expressions, and automated testing.

The third edition also has explicitly described teaching resources. Its landing page links to notebooks with solutions and to “blank” notebooks containing the original text with most code removed. The page presents those blank notebooks as resources for follow-along exercises in which learners fill in the missing code. It also says chapter quizzes and a whole-book quiz are available on request. For an instructor seeking those particular resources, these are concrete reasons to examine this edition.

Choose the free Think Python, second edition if you want to begin with its linked HTML or PDF version and follow its PythonAnywhere instructions. Its page also provides access to example programs and some exercise solutions, so the reading formats are accompanied by programming resources.

If you already have the second edition, Python-version compatibility alone is not a reason established here for switching: both editions teach Python 3. The documented reasons to consider changing are the third edition’s notebook structure, revised text, additional exercises, AI guidance, and named topic additions.

What the pages cannot say about learning outcomes

These pages do not establish how long either edition takes to complete, which exercises a particular beginner will find easier, or whether one format produces better learning outcomes. They describe the books and their resources; they do not present a measured comparison of readers studying the two editions.

They also do not provide a complete, side-by-side account of every change. The third edition’s contents and revision descriptions identify specific additions, but they are not enough to reconstruct every difference in explanations, examples, or exercises.

The third edition’s AI suggestions are described as guidance and help. The pages do not establish that an AI tool is required to complete the book. Likewise, neither description provides enough detail to assess the full depth of testing coverage or the suitability of either edition for a particular workplace project.

The supported choice rests on the features the pages actually identify: integrated chapter notebooks and the third edition’s revisions, or the second edition’s HTML/PDF access and its documented browser-learning route.

Comments

Copied title and URL