Fork me on GitHub

Erin C.'s turtle drawing, box & circles

by Erin Carter

09 Sep 2013

This is my turtle code. It made a funny shape. Here's a screenshot, as well.

My strange Turtle drawing

import turtle

edward = turtle.Turtle()

def draw_side(turtle_name, color, length, angle):
  turtle_name.color(color)
  turtle_name.forward(length)
  turtle_name.left(angle)
  turtle_name.circle(50)

draw_side(edward, 'red', 75, 75)
draw_side(edward, 'blue', 75, 105)
draw_side(edward, 'green', 75, 75)
draw_side(edward, 'yellow', 75, 105)


turtle.done()
Erin is a second-year MSIS student. She works at the SILS Help Desk, stop on by! Find Erin Carter on Twitter, Github, and on the web.
comments powered by Disqus