Exploring Python--Errata
Fall 2009, David Matuszek
This file will be updated whenever more corrections are found.
| Page | Correction | ||||||
|---|---|---|---|---|---|---|---|
4 |
Ctrl-D and Ctrl-Z don't work to halt program execution; use Ctrl-C instead. |
||||||
14 |
|
||||||
51 |
The last four lines of triType need to be indented more,
so that elif and
else are directly below the first if. |
||||||
60, problem 9 |
(a * a)n/2 should be (a * a)n/2 |
||||||
65 |
In the program at the bottom of the page, the word chapter accidentally
wrapped to the next line. It's part of the comment, so it should be on
the previous line. |
||||||
66 |
The variable std and the function std should have different names. |
||||||
67 |
There are two problems in the first join example. There
is an essential period missing (perido is an operator), and the result
should have spaces between the letters.
|
||||||
69 |
Just below the box, the line should be [[0, 0,
0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 7, 0, 0], [0, 0, 0, 0, 0], [0,
0, 0, 0, 0]] |
||||||
71, line 3 |
[1, 2, 3] should be [1, 7, 3] |
||||||
101, second program |
title and capwords are called
differently, but do almost the same thing. |
||||||
116 |
Incorrect results are shown at the top of the page.
|
||||||
145 |
The result of the expression 3 4 2 + * is 18, not 24. |
||||||
155 |
Inconsistent capitalization: aFun() should be afun(), or vice versa. |