You will write three small functions that move a point on a grid, and use them on a triangle.
Your tasks.
reflect, return the image of the point p in the vertical line x = a.quarter_turn, return the image of p after one quarter turn anticlockwise about the point c.turned to the list of the three corners of the triangle after a half turn about the corner (1, 1). Use quarter_turn twice for each corner.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…