This exercise asks the student to generalize the previous exercise from a five pointed star to an n pointed star. The instructions should include the limitation that n will be odd.
This is the place to find errata and give feedback directly to the authors of the textbook Python Programming in Context.
Nothing drives an author more crazy than to find an error in a listing in his own textbook. However, even after months of testing and several rounds of proofreading bugs still find their way in to the final printed book. We aim to provide warnings and fixes here. Please contact us if you find an error that is not covered on this blog.
I bought your book. I am starting to learn as a self-study, but I have a problem with the first module to load:
ReplyDelete>>> import cTurtle
/home/arturo/cTurtle.py:2874: Warning 'as' will become a reserved keyword in Python 2.6
Traceback (more recent call last):
File "pyshell#0", line 1, in module
import cTurtle
File "/home/arturo/cTurtle.py", line 2874
except ArtibuteError as e:
SyntaxError: Invalid syntax
What can I do to fix this?
Thank you
I found the problem: I downloaded the cTurtle module for python 3.0, that's why it didn't work
ReplyDelete