You will turn the corners of a shape about the origin and count how many whole-degree turns fit it onto itself.
Your tasks.
rotate, return the point (x, y) turned anticlockwise about the origin through degrees. Round both numbers to decimal places.fits, return True when turning every corner in corners through degrees gives exactly the same set of corners.orders to the list of orders of rotational symmetry of square and rectangle. The order is the number of whole degrees from to for which the shape fits.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…