Extended. You will count the points with whole-number coordinates in a region, and see how a strict sign changes the count.
Your tasks.
in_region, return True when , and are all true.points to every pair (x, y) with x and y from to that is in the region, in the order of the loops.on_diagonal to the number of those points with x == y.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…