On 19/06/16 04:46, Hershel Millman wrote:

>> In pycharm, when I enter the following, it replies with the following error 
>> message:
>>
>> from turtle import *
>>

Change that to

import turtle

and it should work.



>> def drawSquare(size=100):
>>    turtle.pendown()
>>    turtle.forward(size)
>>    turtle.left(90)
>>    turtle.forward(size)
>>    turtle.left(90)
>>    turtle.forward(size)
>>    turtle.left(90)
>>    turtle.forward(size)
>>    turtle.left(90)
>>
>> drawSquare(50)
>>
>> input ()


-- 
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

Reply via email to