Write a function called swappy:
Here's one way to do it…
Write a function called average_point:
Nested lists can be tricky sometimes, but here's a solution that could work:
Using the same list of points (a list of lists) as the previous example, write a function called all_y: