The latest version of the book is P1.0, released almost 2 years ago. If you've bought a PDF of the book and would like to update it to this version (for free), visit your home page.
By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:
If you've found a new error, please submit it.
- Reported in: P1.0 (13-Jun-18)
PDF page: 0
In the exercise answers, the title of chapter 11 is not reading and writing files. That is chapter 10.--Steve Boyle
- Reported in: P1.0 (04-Jan-18)
PDF page: 211
<quote>Python has a type called set that allows us to store mutable collections of
unordered, distinct items. (Remember that a mutable object is one that you
can modify.) </quote>
Sets are immutable meaning they cant be changed. this looks like a copy paste error from the python list() text. --Joseph Welt
- Reported in: P1.0 (10-Nov-18)
PDF page: 254
binary_search() code is incorrect. It fails when the middle value is the searched value. I confirmed by copy-pasting the code and running it; some doctests fail.--Patrick
- Reported in: P1.0 (13-Nov-18)
PDF page: 275
Page numbering jumps from page #273 to #275. (So from there onwards odd- and even-numbered pages have changed places.)--Stefan Werner
- Reported in: P1.0 (09-May-19)
PDF page: 299
The value 'country' of country.Country('Canada', 34482779, 9984670) does not exist in the example interaction of exercise 2 and causes a syntax error. Removing 'country.' fixes the issue.
Here is a sample interaction from the Python shell:
>>> canada = country.Country('Canada', 34482779, 9984670)
>>> usa = country.Country('United States of America', 313914040, 9826675)--Gary Garot