You will write three small functions that use a record of carbon dioxide in the air.
The idea. The dictionary record gives the yearly average of carbon dioxide in ppm, at the start of each decade.
Your tasks.
rise, return how many ppm the carbon dioxide went up from the year first to the year last.per_year, return the average rise in each year between first and last.fastest_decade, return the first year of the decade with the biggest rise. Compare each year in the record with the next one.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…