Wednesday, 16 July 2014

Python Turtle Competition

What kind of picture can you make using Python and the Turtle Library?
What does this make? You will need to indent the loop?

from turtle import *
cat=100
loops = 0
while loops < 100:
loops +=1
forward (cat)
backward (50)
right (90)
pencolor("red")
forward (50)
right (90)
forward (50)
right (90)
forward (40)
pencolor("Blue")
left (1)
cat=cat+5
done()

No comments:

Post a Comment

Wildern Pupils if you log onto your school email account you can leave a comment via that ID.