Fork me on GitHub

Carolines First Python Turtle

by Caroline Pate

09 Sep 2013

I stole the idea from the interactive version of our book: https://sphotos-b-lga.xx.fbcdn.net/hphotos-prn1/75915101518288302697882026467913_n.jpg

Which was actually extremely helpful, so you guys should definitely check it out! I may not have the math totally down, but I feel like I understand how for loops work. My Python Turtle

import turtle
wn = turtle.Screen()
wn.bgcolor("orange")
andy = turtle.Turtle()
andy.color("pink")
andy.shape("triangle")

print(range(5, 60, 2))
andy.up()

for size in range (5, 60, 2):
   andy.stamp()
   andy.forward(size)
   andy.right(24)


>> wn.exitonclick()
Caroline is a senior multimedia journalism major at UNC Chapel Hill. Her interests include music, television, cats, pizza, and beautiful news applications that tell a story. Find Caroline Pate on Twitter, Github, and on the web.
comments powered by Disqus