'''lecture_05_house_compound_shape.py Oliver W. Layton CS 151 Spring 2021 Lecture 05 Make a house compound shape ''' import turtle import lecture_05_my_shapes_template as shape def house(x, y, scale): ''' Draws a house using a rectangle and a triangle''' # Fill this code in from scratch # parameters: x, y, width, height shape.rectangle(x, y, scale*100, scale*150) # (x, y) = (0, 0) # parameters: x, y, edgeSide shape.triangle(x + scale*0, y + scale*150, scale*100) # Main code setup # Speed up drawing # house() # house(300, -200) house(300, -200, 0.1) house(300, 200, 2) house(-50, 100, 0.5) # Keep the hexagon up until the user clicks on the window turtle.exitonclick()