You will add up the ecological footprints of a few model people from their parts, and find how many Earths each lifestyle would need if everyone lived that way.
The idea. A footprint is the sum of its parts, in global hectares (gha). If the fair share of the biocapacity is gha per person, a lifestyle with a footprint needs Earths.
Your tasks.
footprint, return the total footprint of one person.earths, return how many Earths that person's lifestyle needs.within_share, return the names of the people whose footprint is at or below the fair share, in the order they are given.Run your code once to unlock the worked solution.
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…