-
-
Save mikezink/e703ecc035c8b4b35c7ab4cd76bf23ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
myTurtle = turtle.Turtle() | |
myWin = turtle.Screen() | |
def drawSpiral(myTurtle, lineLen): | |
if lineLen > 0: | |
myTurtle.forward(lineLen) | |
myTurtle.right(90) | |
drawSpiral(myTurtle,lineLen-5) | |
drawSpiral(myTurtle,100) | |
myWin.exitonclick() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment