'''
Created on Sep 3, 2014

@author: Susan
'''
# setup steps: no need to change for now                                                                   
import turtle               # allows us to use the turtles library                                         
wn = turtle.Screen()        # creates a graphics window       

# action steps: draw two squares of different sizes                                                        
# define how to draw a square of any given size                                                            
def square (blipy, size): 
    blipy.forward(size)      # tell blipy to move forward by size units                                
    blipy.left(90)           # turn by 90 degrees                                                           
    blipy.forward(size)
    blipy.left(90) 
    blipy.forward(size)
    blipy.left(90) 
    blipy.forward(size)
    blipy.left(90)

def drawTwoSquares(turt, amount):     # draw two different size squares
    turt.down()
    square(turt,amount)
    turt.up()
    turt.left(180)
    turt.forward(150)
    turt.left(180)
    turt.down()
    square(turt,amount*2)
    turt.up()
    
if __name__ == '__main__':
    alex = turtle.Turtle()      # create a turtle named alex    
    # what does this code do?  
    startPosition = alex.position()
    alex.up()                                                         
    drawTwoSquares(alex, 20)
    alex.goto(startPosition)
    drawTwoSquares(alex,30)
 
 
    # the next line should be the last line in the file   
    wn.exitonclick()         # window stays up til clicked on