Skip to content

Instantly share code, notes, and snippets.

@yousefamar
Created September 22, 2014 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yousefamar/9890cecf7c4b2698b358 to your computer and use it in GitHub Desktop.
Save yousefamar/9890cecf7c4b2698b358 to your computer and use it in GitHub Desktop.
A old failed attempt at drawing a flower with turtle graphics
# So I finally try messing with Python and what better way to try for-loops that with turtle gfx.
from turtle import *
import time
color("blue")
up()
goto(0,100)
down()
circle(50)
for i in range(36):
circle(10)
left(10)
forward(10)
if i==9:
color("red")
write("FAIL!")
color("blue")
up()
goto(0,100)
right(90)
down()
forward(50)
left(90)
for i in range(10):
circle(i)
forward(2*1)
up()
goto(0,50)
right(90)
down()
forward(50)
time.sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment