[Tutor] error in using TurtleWorld modules, ThinkPython.org Book

Surya P.K. Kasturi kasturisurya at gmail.com
Sun Jul 17 16:28:38 CEST 2011


Thanks, .. that was a silly mistake.


On Sun, Jul 17, 2011 at 2:56 PM, Peter Otten <__peter__ at web.de> wrote:

> Surya P.K. Kasturi wrote:
>
> > I am using Think Python book, <www.ThinkPython.org> to learn python.
> > There is a module TurtleWorld that they described to draw lines <
> > http://www.greenteapress.com/thinkpython/swampy/install.html>
> >
> > Though I could run the below code in the python shell, I couldn't do it
> > through a script file.
> >
> >
> > This is the script :
> >
> > from TurtleWorld import *
> >
> > world = TurtleWorld
>
> You forgot the parens in
>
> world = TurtleWorld()
>
> and therefore your turtle Bob
>
> > bob = Turtle()
> > fd(bob, 100)
>
> has no world to live and move in.
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110717/0776ddba/attachment.html>


More information about the Tutor mailing list