We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.

The latest version of the book is P4.0, released about 5 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.

Key: Typo Tech. Error Suggestion Not a problem Next edition

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:  

(To find out what version you have, look at the copyright page, a few pages in from the front of the book. If it says (say) 'Second Printing', then here it'll be P2.0. If there are interim PDF releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF Paper Description Found in Fixed in
vii

#29979: On first page of Introduction, third paragraph begins "It has been more than decade." This should read "It has been more than *a* decade"--Brett Barney

P1.0
12-Dec-07
1

#30635: If anyone's interested, I put up solutions to the problems in the book, right here: learntoprogramanswers.blogspot.com

P1.0
29-Jan-08
12
#29986: In the third bullet-point under "2.4 A Few Things to Try": ". . . be as accurate--or not--you want.)" should read ". . . be as accurate--o...more...
P1.0
13-Dec-07
15
#34455: You have us type: puts ' 12' + ' 12' Because of the space after the third quote, the output should read 12 12 but in the book it says 12...more...
P1.0
09-Sep-08
36
#29987: The marginal comment on this page is garbled: "Modulus, much like integer division, might seem bizarre, but they it is actually really use...more...
P1.0
13-Dec-07
36
#49633: There is a side note that reads: "Modulus, much like integer division, might seem bizarre, but they it is actually really useful, often...more...
P4.0
09-Aug-12
38
#31155: The description of the code says "Note that I used rand(101) to get numbers from 0 to 100 and that rand(1) always returns 0." He's making a p...more...
P1.0
06-Mar-08
39

#31156: I believe that "Suffice it to say" should be "Suffice to say".

P1.0
06-Mar-08
64

#41113: reads: "what I want you do to with each"
rather than "what I want you to do with each"--Trevor Bramble

P4.0
26-Oct-09
71
#32258: This book is my first foray into any programming language, and I'm finding it extremely readable and helpful. Thank you! The code example a...more...
P1.0
03-Jun-08
103
#24458: Hi - not sure of this is an error, exactly. But when I run the Photo renaming utility, I get 'rename': Cross-device link - /Volumes/EOS_DIGI...more...
P1.0
12-Apr-06
161
#48850: The how you could do it section looks to be pulling some code from somewhere but is erroring out with "#<NameError: undefined local variable ...more...
P4.0
01-Mar-12
161
#47318: Under "99 Bottles of Beer on the Wall >How you could do it:" There is no solution. It just says: #<NameError: undefined local variable o...more...
P4.0
28-Jul-11
162
#48851: Under the deaf grandma solution, the "how you could do it" section looks to be pulling some code from somewhere but is erroring out with "#<N...more...
P4.0
01-Mar-12
163
#48852: Under deaf grandma extended - The how you could do it section looks to be pulling some code from somewhere but is erroring out with "#<NameEr...more...
P4.0
01-Mar-12
164
#48853: Under the leap years section - The how you could do it section looks to be pulling some code from somewhere but is erroring out with "#<NameE...more...
P4.0
01-Mar-12
164
#48854: Under the leap years section - The how you could do it section looks to be pulling some code from somewhere but is erroring out with "#<NameE...more...
P4.0
01-Mar-12
165
#48855: Under building and sorting an array - The how you could do it section looks to be pulling some code from somewhere but is erroring out with "...more...
P4.0
01-Mar-12
166
#48856: Under table of contents revisited - The how you could do it section looks to be pulling some code from somewhere but is erroring out with "#<...more...
P4.0
01-Mar-12