
Interactive Python Programming
for Beginners
for Beginners
ISBN: | 978-9-814-74296-2 |
---|---|
Publisher: | McGraw Hill Education |
Year: | 2016 |
Pages: | 248 |
Errata
Page 39 | The program shown in Exercise 2.8 contains a couple of mistakes. The correct program should be:
import turtle turtle.up() turtle.hideturtle() turtle.dot(10) turtle.done() |
---|---|
Page 107 | The program shown in Exercise 6.8 is not correct. The correct program should be:
for i in range(1, 6): if i ______ 2: continue print(i, end="") |
Page 140 | Figure 9.1 has formatting problems. The correct figure should be:
|
Page 178 | The line of code containing turtle.color() at the top of the page is not correct. The correct code should be:
turtle.color("black", "white") |
Page 185 | The first line of code shown in Exercise 11.1 is not correct. The correct line of code should be:
turtle.tracer(True) |
Page 195 | The event handlers for turtle1 and turtle2
have been mistakenly removed in Code Listing 12.5.
The following is the code of the two event handlers:
# An event handling function for turtle1 def lightup1(x, y): turtle1.fillcolor("yellow") turtle2.fillcolor("black") turtle3.fillcolor("black") # An event handling function for turtle2 def lightup2(x, y): turtle1.fillcolor("black") turtle2.fillcolor("yellow") turtle3.fillcolor("black") |