Errata

Think Python

Errata for Think Python, Third Edition

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
O'Reilly learning platform, Other Digital Version
Page Chapter 3: Functions
Second Exercise at the bottom ("Triangle")

The exercise asks the reader to write a function called triangle() that prints a pyramid of characters that is a certain height based on the function arguments. But the code provided is the completed function, so there's no point asking the reader to write the code.

This provided code appears in every version of the textbook I could find.

Note from the Author or Editor:
Thank you, fixed in the 3rd edition publication.

Adam Myers  Mar 01, 2024  May 24, 2024
O'Reilly learning platform, Other Digital Version
Page Chapter 3: Functions
Third exercise at the bottom ("Rectangle")

The exercise asks the reader to write a function rectangle() that prints a rectangle of strings with a certain height and width. But the last line of the exercise prompt says "Here’s an example of a pyramid with 4 levels, using the string 'L'." The error is that the code example provided is the code that writes a function called rectangle() that completely prints the rectangle instead of a pyramid. (Which also defeats the purpose of the exercise)

Note from the Author or Editor:
Thank you, fixed in the 3rd edition publication.

Adam Myers  Mar 01, 2024  May 24, 2024