# Lab 5 - Exercise 2 - Problem (Exploration Exercise) 6 # # Can we generalize our square function further # by adding the length of the sides as a second parameter? # # Anne Lavergne # March 2017 import turtle as t def square( colour, side ): t.pencolor(colour) for each in range(4): t.forward(side) t.right(90) return # MAIN part of program - Top Level t.setup(width=600, height=500) t.pensize(3) t.penup() t.goto(-75,40) t.pendown() # Square 1 square('#f44292', 50) t.penup() t.forward(90) t.pendown() # Square 2 square('#607c51', 50) t.penup() t.forward(90) t.pendown() # Square 3 square('#bae2dc', 50)