What I typed was: import turtle turtle.pendown()
(And pendown was highlighted in pycharm, indicating that it was not a valid command.) The error message I received was: /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 "/Users/Hershel/PycharmProjects/Project 1/practicefornotturtle.py" Traceback (most recent call last): File "/Users/Hershel/PycharmProjects/Project 1/practicefornotturtle.py", line 2, in <module> turtle.pendown() AttributeError: 'module' object has no attribute 'pendown' Process finished with exit code 1 Thank you, Hershel Begin forwarded message: > From: Alan Gauld via Tutor <tutor@python.org> > Date: June 23, 2016 12:12:39 AM MST > To: tutor@python.org > Subject: Re: [Tutor] : Turtle > Reply-To: Alan Gauld <alan.ga...@yahoo.co.uk> > > On 23/06/16 01:52, Hershel Millman wrote: >> I found the turtle module on my computer. >> >>>>> import turtle >>>>> print(turtle.__file__) >> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/turtle.py > > That's the right turtle module do not rename it. > >>>> I entered "import turtle" instead of "from turtle import * ", but it >>>> looks as if it did not import the pendown command. Why is that? > > If that's the module you are importing it should work. > > What happens if you try: > >>>> import turtle >>>> turtle.pendown() > > Do you still get the error? > > If so can you cut n paste the entire session, including the initial > python startup message and the error message, into a mail for us? > > > -- > Alan G > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > http://www.amazon.com/author/alan_gauld > Follow my photo-blog on Flickr at: > http://www.flickr.com/photos/alangauldphotos > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor