[Tutor] Fwd: Turtle
Alan Gauld
alan.gauld at yahoo.co.uk
Sun Jun 19 04:47:44 EDT 2016
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
More information about the Tutor
mailing list