Thursday, February 12, 2009

Chapter 1 Programming Exercise 1.3

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.

2 comments:

  1. I bought your book. I am starting to learn as a self-study, but I have a problem with the first module to load:

    >>> 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

    ReplyDelete
  2. I found the problem: I downloaded the cTurtle module for python 3.0, that's why it didn't work

    ReplyDelete