HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Python Labs
  2. /Ozone-depleting gases after a ban
Earth and Environmental ScienceMediumHigh School (11–12)The Atmosphere and Weather

Ozone-depleting gases after a ban

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 τ\tauτ years falls as

N=N0e−t/τ\displaystyle N = N_0e^{-t/\tau}N=N0​e−t/τ

The amounts below are in kilotonnes in the whole atmosphere. They are round numbers for practice, not measured values.

Your tasks.

  1. In left, return the amount of a gas left after years years.
  2. In years_to, return the number of years for a gas to fall to share of its starting amount (for example 0.1).
  3. In total_left, return the total of all three gases after years years.

Run it first, just as it is. The checker at the end prints FAIL for each task. Then do the tasks one at a time, and run the program again after each one. A Hint appears under every check that still fails.

When every line says PASS, find how many years pass before the total falls below half of its starting amount. Which gas is most of what is left by then?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A worked solution

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 save
← All Labs
← Readings of a ring infiltrometerTerms of trade over a decade →
More onThe Atmosphere and Weather

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Problems without borders: Amazonia, ivory and the ozone layerEnvironment Across Borders: Ozone, Trade and Aid

More labs on this topic

  1. How fast does a cyclone move?Hard
  2. Is the afternoon air ready for storms?Hard
  3. How much of India's rain the monsoon bringsHard
  4. Geostrophic winds at five citiesHard
  • The carbon dioxide record and its forcingHard
  • All labs on this topic →