You will write three functions for the ideas of the last lesson: how far the sea reaches, how much rain a roof collects, and the emissions for each person.
The idea. On land that rises in every , a rise of metres reaches metres inland. A roof of area in a place with rain mm collects litres. Emissions for each person in tonnes are .
Your tasks.
flood_distance, return the distance in m that a rise rise reaches on a slope of 1 in n.harvest, return the litres collected by a roof of roof square metres in a year with rain mm.per_person, return the tonnes for each person from gt Gt and millions million people.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…