'''
Created on Sep 13, 2014

@author: Susan
'''
import turtle               # allows us to use the turtles library                                         
wn = turtle.Screen()        # creates a graphics window                                                    
                                                       
# This function draws a flower by repeating squares
def flowerSquare(alex):
    for i in range(12):      # repeat twelve times
        # draw a square
        alex.forward(50)
        alex.left(90)
        alex.forward(50)
        alex.left(90)
        alex.forward(50)
        alex.left(90)
        alex.forward(50)
        alex.left(90) 
        # move 30 degrees 
        alex.left(30)
 
if __name__ == "__main__":       
    alex = turtle.Turtle()    # create a turtle named alex
    flowerSquare(alex)



    wn.exitonclick()