Errata

Head First Learn to Code

Errata for Head First Learn to Code

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
PDF
crossword page 29

[minor spoiler alert]
Crossword 16 across:. Python is this type of language.
Answer: Highlevel

The term "high level language" cannot be found in Chapter 1. "High-level" is mentioned on p6, bullet point 1 and in the bullet points on p 28, though. This might be confusing for some readers.

Note from the Author or Editor:
Confirmed. I think the easiest thing here is to delete this question/answer.

Jørgen Lang  Jan 29, 2018  Feb 23, 2018
PDF
Page i
last quote

Adjunct Professor of Music Technology at NYU
and Montclair State University

should be:


Ethan Hein, Adjunct Professor of Music Technology at NYU
and Montclair State University

O'Reilly Media
 
Feb 26, 2018  Feb 23, 2018
Printed
Page copyright

Add credit to copyright page:
Brain image on spine: Eric Freeman

O'Reilly Media
 
Apr 10, 2018  Mar 20, 2020
Printed
Page x
first paragraph

"...lawn sprinker system..."

I guess it should spell
"...lawn sprinkler system..."

Anonymous  May 14, 2019  Mar 20, 2020
PDF
Page 12
intro text, 4th sentence

Sharpen Solution, 4th sentence reads:
"If you get stuck, the answers are on the next page"

4th sentence is obsolete since we already are on the "next page" ;)

Note from the Author or Editor:
Delete "If you get stuck, the answers are on the next page. We did the first one for you." from the instructions of the exercise.

Jørgen Lang  Feb 18, 2018  Feb 23, 2018
PDF
Page 40
2nd paragraph

Text: "To use the shell, run idle3 as usual,…"

This is the only mention of idle3 (terminal command to start IDLE) in the whole book. Might need some clarification in the introduction or replace "idle3" with "IDLE".

Note from the Author or Editor:
Replace "idle3" in the 2nd paragraph of page 40 with the word "IDLE".

Jørgen Lang  Jan 30, 2018  Feb 23, 2018
PDF
Page 60
1st paragraph, 3rd sentence

Text: "After that, head to the console…"

"console" has not yet been introduced as synonym for the Python Shell.

Note from the Author or Editor:
Replace "console" with "shell" in the indicated sentence.

Jørgen Lang  Jan 31, 2018  Feb 23, 2018
PDF
Page 64
Bullet Points

Incosistent markup of literal terms like 'input' (function, no markup), 'int' (function, no markup), 'float' (function, marked up).

Note from the Author or Editor:
the words input and int should be code font where they appears as "input function" and "int function" in the bullets (6th bullet on left side, fourth bullet on right side)

Jørgen Lang  Feb 01, 2018  Feb 23, 2018
Printed
Page 64
Third bullet point in the right column

"Python Supports two numeric types, integers and floating-point numbers, in addition to a couple other types indended for scientific computation".

It should be intended, instead of indended.

Ernesto Rodriguez  Apr 21, 2018  Mar 20, 2020
Printed
Page 87
Fourth Boolean response in the Booleans Exposed Interview.

"Think of a Boolean value representing... All of those are Boolean values, True or False, that determine where you code goes from there."

The 'you' is supposed to be a 'your'.

Ernesto Rodriguez  Apr 24, 2018  Mar 20, 2020
PDF
Page 102
last paragraph, 1st sentence

"…figure out how to reprompt the user..":
Double period at end of sentence should one be one or ellipsis.

Note from the Author or Editor:
Remove extra period on last paragraph, 1st sentence.

Jørgen W. Lang  Feb 07, 2018  Feb 23, 2018
PDF
Page 107
annotation for 2nd code example, 2nd sentence

"But the variables in our code, like scoop, are changing throughout the computation."

"scoop" should be "scoops"

Note from the Author or Editor:
In annotation for 2nd code example, 2nd sentence, add an 's' to the end of scoop:

"But the variables in our code, like scoop[s], are changing throughout the computation."

Jørgen Lang  Feb 07, 2018  Feb 23, 2018
PDF
Page 109
1st para, 2nd sentence

Sentence reads, "Each time we loop, we decrement (reduce scoops by 1), write another string to the browser, and keep going."

Since we are working on the Python Shell, IMHO this should read, "Each time we loop, we decrement (reduce scoops by 1), write another string to the Shell, and keep going."

Note from the Author or Editor:
Confirmed. Replace the word browser in the 1st paragraph, 2nd sentence with the word "shell".

Jørgen Lang  Feb 07, 2018  Feb 23, 2018
PDF
Page 118
middle, "Sharpen" intro text, 2nd sentence

"Based on our plan on the previous page…" should refer to the original page:

"Based on our plan on the page 88…"

Note from the Author or Editor:
Replace "previous page" with "page 88". Note on the print version this is page 89, so please confirm it is different in digital as he indicated.

Jørgen Lang  Feb 19, 2018  Feb 23, 2018
PDF
Page 120
exercise solution, intro text, top left, 2nd sentence

"Feel free to use our comments on the previous page as a starter…"
should refer back to the original "previous" page:

"Feel free to use our comments on page 98 as a starter…"

Note from the Author or Editor:
This makes sense as previous doesn't mean the same thing here. Just change words previous page to page 98 as indicated. Print edition is page 98 as well.

Jørgen Lang  Feb 19, 2018  Feb 23, 2018
PDF
Page 142
bottom illustration

Label for second smoothie says "stawberry", should be "strawberry"

Jørgen Lang  Mar 15, 2018  Mar 20, 2020
Printed
Page 143
illustrations

In the three illustrations, the label for the second smoothie says "stawberry", but it should be "strawberry".

Eleonora Pinto de Moura  Apr 06, 2018  Mar 20, 2020
PDF
Page 144
illustration, label for 2nd glass in list

label for 2nd glass in list reads 'stawberry', should be 'strawberry'

Jørgen Lang  Feb 23, 2018  Mar 20, 2020
Printed
Page 144
First paragraph

"After that the code bock of the for loop is executed for the last time."

It is supposed to be "block" instead of "bock".

Ernesto Rodriguez  May 01, 2018  Mar 20, 2020
Printed
Page 153
Judy's 3rd line on the "Cubicle conversation continued... "

"To do that I think we need to maintain a highest score variable that keeps track as we interate through the list. Here, let me write some Python-like pseudocode:"

"interate" should be "iterate".

Ernesto Rodriguez  May 02, 2018  Mar 20, 2020
PDF
Page 156
bottom, "Sharpen" exercise, 1st sentence

"You’ve seen how to create an empty list with two square backets…"
Missing 'r' in 'brackets'. Ah, here it is: 'r'

Jørgen Lang  Feb 26, 2018  Mar 20, 2020
Printed
Page 239
1st paragraph, last sentence

"So unless your passion turns out to be sorting algorithms, wouldn't you rather be working on your probem at hand?

Substitute 'probem', with 'problem'.

Ernesto Rodriguez  May 06, 2018  Mar 20, 2020
PDF
Page 263
'Not so fast' section, 5th sentence

'It can also makes implementing'

should be

'It can also make implementing'

Steve Lamb  Jan 02, 2019  Mar 20, 2020
PDF
Page 266
Right below the image

The text wrapping on the image causes the word "has" to be separated from the rest of the sentence. Shifting the image up should fix the problem!

Note from the Author or Editor:
Yes, confirmed. Adjust to taste or, Kristen, if it gets problematic I can get in and adjust it.

Melanie Yarbrough  Jan 02, 2018  Feb 23, 2018
PDF
Page 275
bottom of page, last code annotation

Original: "Don’t worry about entering this code yet:; we'll do it on the next page."

Remove either colon or semicolon. Maybe use slice to do so.

Jørgen Lang  Mar 13, 2018  Mar 20, 2020
PDF
Page 294
Paragraph above 'There Are No Dumb Questions'

Change:

already used the dot operator quite few times in this book

to

already used the dot operator quite a few times in this book

(add the 'a' after the word 'quite')

Steve Lamb  Jan 02, 2019  Mar 20, 2020
PDF
Page 312
2nd last code annotation on the left, above test drive

"Now we’re going to call make_spiral intead of make_square."
"intead" -> "instead"

Jørgen Lang  Mar 20, 2018  Mar 20, 2020
PDF
Page 363
Q&A section, 1st question

"What happens if I try to delete a key that doesn’t exist??"
Double question mark.

Jørgen Lang  Mar 27, 2018  Mar 20, 2020
PDF
Page 370
Brain Buildingparagraph

Brain Building paragraph, after the second hyphen —— “although don’t forget to write some some”

Remove the second ‘some’

Steve Lamb  Jan 03, 2019  Mar 20, 2020
PDF
Page 377
2nd para, 2nd sentence

"You already know, becasue the pseudocode…."
-> because

Jørgen Lang  Mar 28, 2018  Mar 20, 2020
PDF
Page 396
annotation under computer illustration

"The Python intepreter"
-> The Python interpreter

Jørgen Lang  Apr 02, 2018  Mar 20, 2020
PDF
Page 417
3rd paragraph

"…without having the interepter just give up;"

change to:

"…without having the interpreter just give up;"

Jørgen Lang  Apr 03, 2018  Mar 20, 2020
PDF
Page 436
6th paragraph

‘Though are all actual Web APIs’

should be changed to

‘These are all...’

Steve Lamb  Jan 04, 2019  Mar 20, 2020
PDF
Page 453
bottom annotation, 1st sentence

Original: "…the book's ch10 folde;…"
Change to "…the book's ch10 folder;"

Jørgen Lang  Apr 07, 2018  Mar 20, 2020
PDF
Page 479
ready, bake, code, 2nd para, last word

"[…] write a new count_neighbors function from scatch."

"scatch" -> "scratch"

Jørgen Lang  Apr 24, 2018  Mar 20, 2020
PDF
Page 495
bottom, last code annotation

"Notice how each time you click the function start_hander is immediately called."

"start_hander" -> "start_handler"

Jørgen Lang  Apr 25, 2018  Mar 20, 2020
PDF
Page 497
text below "Brain Power" box, 4th sentence

"In this diagram we’re going to use new global variable […]"

Missing "a":
Change to:

"In this diagram we’re going to use a new global variable […]"

Jørgen Lang  Apr 26, 2018  Mar 20, 2020
PDF
Page 574
xword solution, 2 down

"mutiple" -> "multiple"

Jørgen Lang  May 10, 2018