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 →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer 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. /Carbon dioxide equivalents
ChemistryEasyHigh School (11–12)Environmental Chemistry

Carbon dioxide equivalents

You will write three functions that compare greenhouse gases by their global warming potential (GWP over 100 years, AR5 values).

The idea. The carbon dioxide equivalent of a gas is its mass times its GWP. A list of emissions is the sum of these.

Your tasks.

  1. Complete equivalent(gas, kg). It returns the carbon dioxide equivalent in kg, using the dictionary GWP.
  2. Complete total(emissions). It takes a dictionary of gas and mass and returns the total equivalent.
  3. Complete biggest(emissions). It returns the name of the gas with the largest equivalent.

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 kilograms of SF6\text{SF}_{6}SF6​ warm the climate as much as one tonne of methane.

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
← Photons and the ozone shieldA BOD bottle →
More onEnvironmental Chemistry

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. Nanoparticles by the gramMedium
  2. An atom economy calculatorMedium
  3. A BOD bottleMedium
  4. Photons and the ozone shieldMedium
  5. Air monitor readingsEasy
All labs on this topic →