python turtle Name error: shape is not defined

Viewed 4364

When I tried in Mac os with python 3.8.3 this code:

from turtle import *
shape("turtle")

I get this error:

Traceback (most recent call last):
  File "C:\Users\jeeva\Desktop\Tanmay_new\python\pi\Draw_pi\draw_pi.pyw", line 2, in <module>
    shape("turtle")
NameError: name 'shape' is not defined

It looks like python doesn't reconize shape.
Please help me.

1 Answers

See if you have a file named turtle.py other than the module. Rename it and try again

Related