lab2 - def drawSpiral3(myTurtle, maxSide): import turtle...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
def drawRectangle (myTurtle, width, height): for i in range (2): myTurtle.forward(width) myTurtle.right(90) myTurtle.forward(height) myTurtle.right(90) def drawSpiral2(myTurtle , maxSide): for sideLength in range (maxSide, 0, -5): myTurtle.forward(sideLength) myTurtle.left(90)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: def drawSpiral3(myTurtle, maxSide): import turtle v=cTurtle.Turtle() for sideLength in range (maxSide, 0, -5): myTurtle.forward(sideLength) myTurtle.left(90) for sideLength in range (maxSide, 0, -5): v.forward(sideLength) v.right(90)...
View Full Document

Ask a homework question - tutors are online