small medium large xlarge

Errata for Learn to Program

 

The latest version of the book is P4.0, released about 7 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: P1.0 (12-Dec-07)
#29979
PDF page: vii
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 Barne...more...
  • Reported in: P1.0 (29-Jan-08)
#30635
PDF page: 1

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

  • Reported in: P1.0 (13-Dec-07)
#29986
PDF page: 12
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--or not--*...more...
  • Reported in: P1.0 (09-Sep-08)
#34455
Paper page: 15
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 1212. The...more...
  • Reported in: P1.0 (13-Dec-07)
#29987
PDF page: 36
The marginal comment on this page is garbled: "Modulus, much like integer division, might seem bizarre, but they it is actually really useful, of...more...
  • Reported in: P4.0 (09-Aug-12)
#49633
PDF page: 36
There is a side note that reads: "Modulus, much like integer division, might seem bizarre, but they it is actually really useful, often when us...more...
  • Reported in: P1.0 (06-Mar-08)
#31155
PDF page: 38
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 point the...more...
  • Reported in: P1.0 (06-Mar-08)
#31156
PDF page: 39

I believe that "Suffice it to say" should be "Suffice to say".

  • Reported in: P4.0 (26-Oct-09)
#41113
PDF page: 64

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

  • Reported in: P1.0 (03-Jun-08)
#32258
PDF page: 71
This book is my first foray into any programming language, and I'm finding it extremely readable and helpful. Thank you! The code example about "to...more...
  • Reported in: P1.0 (12-Apr-06)
#24458
PDF page: 103
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_DIGITAL/DCIM...more...
  • Reported in: P4.0 (01-Mar-12)
#48850
PDF page: 161
The how you could do it section looks to be pulling some code from somewhere but is erroring out with "#<NameError: undefined local variable or metho...more...
  • Reported in: P4.0 (28-Jul-11)
#47318
PDF page: 161
Under "99 Bottles of Beer on the Wall >How you could do it:" There is no solution. It just says: #<NameError: undefined local variable or method...more...
  • Reported in: P4.0 (01-Mar-12)
#48851
PDF page: 162
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 "#<NameError...more...
  • Reported in: P4.0 (01-Mar-12)
#48852
PDF page: 163
Under deaf grandma extended - The how you could do it section looks to be pulling some code from somewhere but is erroring out with "#<NameError: und...more...
  • Reported in: P4.0 (01-Mar-12)
#48853
PDF page: 164
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 "#<NameError: un...more...
  • Reported in: P4.0 (01-Mar-12)
#48854
PDF page: 164
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 "#<NameError: un...more...
  • Reported in: P4.0 (01-Mar-12)
#48855
PDF page: 165
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 "#<NameEr...more...
  • Reported in: P4.0 (01-Mar-12)
#48856
PDF page: 166
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 "#<NameErro...more...