[docs] Python error

Ryan Matenga rmatenga at mybce.catholic.edu.au
Tue Jul 28 03:42:38 CEST 2015


Hi

Could you help me please.  I am using Python 3.4.3 and I keep getting an error when I try to run my code.

My class mates are using the same code and version as me and they are not getting the error.

Thanks
Ryan

from turtle import*
shape("turtle")
speed(10)

forward(100)
right(90)
forward(100)

done()
Traceback (most recent call last):
  File "/Users/rmatenga/Desktop/LineDrawing.py", line 1, in <module>
    from turtle import*
  File "/Users/rmatenga/Desktop/turtle.py", line 2, in <module>
    shape("turtle")
NameError: name 'shape' is not defined
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20150728/2fa5a695/attachment.html>


More information about the docs mailing list