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. /The nitrogen chain
BiologyEasyHigh School (9–10)Ecology and Environment › Cycles in Nature

The nitrogen chain

You will write functions for the two bacterial steps of the soil and a lookup that names the process for a change.

The idea. Nitrifying bacteria change a share of the ammonium to nitrate. Denitrifying bacteria then change a share of that nitrate to nitrogen gas. What is left is what plants can absorb.

Your tasks.

  1. Finish nitrate_formed. It gives the nitrate made from the ammonium.
  2. Finish nitrate_left. It gives the nitrate left after the denitrifying bacteria have worked.
  3. Finish which_process. It gives the name of the process for a change from one form to another, using the dictionary.

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, call nitrate_left(300, 20, 50). Is this a well-drained field or a waterlogged one?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A 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
← Keeping the carbon booksReading growth readings →
More onEcology and Environment › Cycles in Nature

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Microorganisms in the nitrogen cycleNutrient Cycles: Carbon and Nitrogen

More labs on this topic

  1. Keeping the carbon booksEasy
  2. A model of levelling offEasy
  3. Reading growth readingsEasy
  4. Seed viability and categoriesMedium
  5. Zones of a reserve
Easy
All labs on this topic →