Python Forum
python!NameError: name 'Turtle' is not defined - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: python!NameError: name 'Turtle' is not defined (/thread-149.html)



python!NameError: name 'Turtle' is not defined - shaywune - Sep-24-2016

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:


RE: python!NameError: name 'Turtle' is not defined - snippsat - Sep-24-2016

See/search if you have a file named turtle.py.
Rename it and try again.


RE: python!NameError: name 'Turtle' is not defined - shaywune - Sep-24-2016

(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