small medium large xlarge

Errata for Practical Programming (2nd edition)

 

The latest version of the book is P3.0, released 11 months ago. If you've bought a PDF of the book and would like to upgrade 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.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (10-Jun-14)
#76854
PDF page: 1

Would it be possible or desirable to provide the Exercise Solutions in a PDF or some other easily printable form? --David @ Support

  • Reported in: P2.0 (18-Dec-15)
#79352
Paper page: 11
It says "With // , the result is rounded down to the nearest whole number", when in reality it returns the floor of the normal division beetween the f...more...
  • Reported in: P3.0 (01-May-16)
#80283
PDF page: 24

((350-32) x (5/9)) /20 = 8.83333333333333 rather than 7.83333333333333 for oven-heating time.--George Richards

  • Reported in: P3.0 (01-May-16)
#80284
PDF page: 24

Erratum submitted in error. (-20) missing from numerator which changes result from 8.833.... to 7.833.... My apologies.--George Richards

  • Reported in: P1.0 (07-Dec-16)
#80959
PDF page: 62

the first line:
`Reading the code, if someone calls pie(0) , then you probably see that this will`

pie(0) should actually be `pie_percent(0)`.

  • Reported in: P3.0 (05-Dec-16)
#80952
PDF page: 85
I've purchased the book and I believe I have found an editing error. It's in Chapter 5.1 A Boolean Type, p 85, "Comparing Strings" (2nd paragraph). It...more...
  • Reported in: P3.0 (07-Oct-16)
#80791
Paper page: 103
I'm using PY3.5.2. in the grey example "Restoring a Module," I tried to follow the steps in my Shell. The math=imp.reload(math) line does not reset p...more...
  • Reported in: P3.0 (07-Oct-16)
#80792
Paper page: 111
Figure 4-The doctest Module Running the Tests from Module temperature_program is the wrong snapshot... it is showing a test of the baking.py program n...more...
  • Reported in: P3.0 (07-Oct-16)
#80793
Paper page: 113
Figure 6--Failure Message for doctest is showing test result from the baking.py program and not the described temperature_program.py module. The expla...more...
  • Reported in: P1.0 (22-Nov-13)
#53199
Paper page: 174
(in "The with Statement" section) A misleading oversimplification is given re. the purpose of the 'with' statement in Python: The book states that it...more...
  • Reported in: P2.0 (17-Nov-16)
#80891
Paper page: 183
Current statement in the book, p2.0 page 183, will result error message (ValueError: could not convert string to float: ). Suggest to add one line to ...more...
  • Reported in: P1.0 (26-Sep-13)
#52984
PDF page: 186

In function definition smallest_value_skip there is no check for a '-' in the first data line after the header.

  • Reported in: P1.0 (11-Feb-14)
#76399
PDF page: 220
This is not an error in the book, but for the explanation of exercise 5 on page 220 (Storing Data Using Other Collection Types). For the return, yo...more...
  • Reported in: P1.0 (30-Oct-13)
#53090
PDF page: 225

In "Find, Remove, Find" it is not the re-insertion that is the problem, but the removal, as min2 is obtained before the re-insertion.

  • Reported in: P1.0 (02-Dec-13)
#53264
PDF page: 360
Nowhere in this chapter are there instructions to close the connection to the database when you're finished working with it: con.close() Had to ...more...
  • Reported in: P1.0 (07-Feb-14)
#76383
PDF page: 371
Paper page: 367
In the index for "backslash", only the meaning of backslash in Windows directory paths is listed (P.174). The use of backslash as line-continuation (...more...