You will follow the amounts of three ozone-depleting gases in the air after their emissions stop, and find when each one falls below a target.
The idea. A gas with a lifetime of years falls as
The amounts below are in kilotonnes in the whole atmosphere. They are round numbers for practice, not measured values.
Your tasks.
left, return the amount of a gas left after years years.years_to, return the number of years for a gas to fall to share of its starting amount (for example 0.1).total_left, return the total of all three gases after years years.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…