def drawSmileyFace(): face = makeEmptyPicture(400, 400, white) for j in range(1, 401, 40): for i in range(1, 401, 80): if (j/40) % 2 == 1: face.addRectFilled(black, i, j, 40, 40) else: face.addRectFilled(black, i+40, j, 40, 40) #Start of Solution to Question 7 #End of Solution to Question 7 (you can see the resulting image in drawn-by-q7.jpg) show(face)