Fork me on GitHub

ashley's sun turtle

by Ashley Brown

09 Sep 2013

Ashley's Sun Turtle

I found code to make a sun. I changed the color, and just kept the turtle running. As you can see from the first screenshot, I made quite a few errors until I got it to work. But hey, that's what it's all about, right?

Here is the code:

import turtle

turtle.color('green', 'yellow')
turtle.begin_(fill)
while True:
 turtle.forward(200)
 turtle.left(170)
turtle.end_fill()
done()

I saved it in the nano window under sunturtle.py. The code inspiration came from: Bucknell University.

Here are some screen shots:

First screen shot highlighting some of my errors Second screen shot showing the code

I am a dual Master's student studying Library Science and Public Administration. Find Ashley Brown on Twitter, Github, and on the web.
comments powered by Disqus