small medium large xlarge

Errata for Practical Programming

 

The latest version of the book is P4.0, released over 4 years 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: P4.0 (20-Nov-12)
#50187
PDF page: 1-end
There appears to be a typo in the CSS of the epub edition. It says ".example Property padding-rightt doesn't exist : 1em" Search for "rightt" in the...more...
  • Reported in: P4.0 (15-Jan-12)
#48528
PDF page: 9
17 / 10 produces 1.7 not 1 (an integer). Int division would be 17 // 10 and produce a one. Perhaps the text is not current with now state of Pytho...more...
  • Reported in: P4.0 (31-Oct-11)
#47879
PDF page: 19

<code:bold> tags visible--Jessen Havill

  • Reported in: P4.0 (23-Nov-12)
#50201
PDF page: 43
on def to_celcius(t): return(t-32)*5.0/9.0 Traceback (most recent call last): File "<string>", line 2, in <fragment> IndentationError: expecte...more...
  • Reported in: P4.0 (26-Oct-11)
#47819
PDF page: 75
In the v4.0 PDF and mobi version, the first example after the first paragraph in section 5.4 appears like this: for <code:bold>variable</code:bold>...more...
  • Reported in: P4.0 (10-Oct-12)
#49937
PDF page: 77
I downloaded the lists/multiplication_table.py from the provided link. When inserted into a blank file or run through the Python visualizer you get t...more...
  • Reported in: P4.0 (28-Oct-12)
#50079
Paper page: 78
In the box "Where did my list go", the variable colors is assigned 'red orange yellow green blue purple'.split(). Then, colors is evaluated, and sudd...more...
  • Reported in: P4.0 (21-Jul-12)
#49551
Paper page: 91

"another fundamental concepts" should be "another fundamental concept"--Michael Ernst

  • Reported in: P4.0 (21-Apr-12)
#49167
Paper page: 98

Q 7 says to print half_lives in 5.5 Slicing pg 84 when half_lives is in 5.3 Built-in Functions on Lists on pg 79--Jay Palmer

  • Reported in: P4.0 (21-Jul-12)
#49552
Paper page: 100

<code:bold> tags are visible at the beginning of section 6.2 (as they are in a number of places in the book)--Michael Ernst

  • Reported in: P4.0 (18-Apr-12)
#49129
PDF page: 102
For some of the pages when they try to explain new terminologies, I see a bunch of blotchy text format code like this one from page 102 <code:bold>...more...
  • Reported in: P2.0 (07-May-13)
#51472
Paper page: 112

In the first sentence, "...the empty list [] all are considered to false,..." should be "...the empty list [] all are considered to be False,..."

  • Reported in: P1.0 (11-Apr-15)
#78305
Paper page: 115

methane molecular formula = CH4 not ch3.

for page 115, 116, 142 too similarly.--a1ok@hotmail.com

  • Reported in: P4.0 (10-Oct-13)
#53017
PDF page: 122
Paper page: 115

Page 114 (probably blank) is missing--Leen Torenvliet

  • Reported in: P2.0 (07-May-13)
#51473
Paper page: 125

Markup tags appear instead of formatted text: "for variable in <cf>list</cf>:". "list" should be printed in bold.

  • Reported in: P4.0 (23-Apr-12)
#49184
PDF page: 176
The code for inverting a dictionary appears on page 176, right before the inverting a dictionary section, and then again on page 177 (exact same code)...more...
  • Reported in: P1.0 (22-Nov-11)
#48007
Paper page: 204

In the first if statement you have:

else:
min2, min1 = 1,0

That should be

else:
min2, min1 = 0,1--Susan Rodger

  • Reported in: P1.0 (11-Apr-15)
#78306
Paper page: 337

in the code for db/db_distinct.cmd
"DISTINCT" is missing.

should be: SELECT DISTINCT PopByRegion.Region
FROM ...--a1ok@hotmail.com

  • Reported in: P4.0 (02-Oct-12)
#49915
PDF page: 890
Since I'm a beginner, I'm sure this is my error; however, I'm running Wing IDE (as suggested in the class resource area and on PDF Loc 890 where the "...more...