Python Forum

Full Version: python!NameError: name 'Turtle' is not defined
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I cannot seem to get any of the python functions to work.I am teaching myself how to code in python and watching youtube videos.

however whenever i run the code:
import turtle
turtle.forward(10)
it gives an ( AttributeError: module 'turtle' has no attribute 'forward')

same with all other turtle commands.

i am using python 3.5

please help me make sense of this.

Thanks  :huh: :dodgy:
See/search if you have a file named turtle.py.
Rename it and try again.
(Sep-24-2016, 04:59 PM)snippsat Wrote: [ -> ]See/search if you have a file named turtle.py.
Rename it and try again.

Thank you...

joining this forum is the best thing i ever did.

thank you so much snippsat