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. /Feedback, albedo and plant zones in code
Earth and Environmental ScienceEasyHigh School (9–10)Pollution and Waste

Feedback, albedo and plant zones in code

You will write three small functions for the links of the triple planetary crisis: the total warming with a feedback, the sunlight that a surface absorbs, and the rise of a plant zone on a mountain.

The idea. A reinforcing loop with share fff turns a first warming ΔT0\Delta T_0ΔT0​ into ΔT0/(1−f)\Delta T_0 / (1 - f)ΔT0​/(1−f). A surface absorbs S (1−albedo)S\,(1 - \text{albedo})S(1−albedo). A warming ΔT\Delta TΔT lifts a zone by ΔT/6.5\Delta T / 6.5ΔT/6.5 kilometres, which is 1000 ΔT/6.51000\,\Delta T / 6.51000ΔT/6.5 metres.

Your tasks.

  1. In total_warming, return the total warming for a first warming t0 and a feedback f.
  2. In absorbed, return the power absorbed for sunlight s and an albedo.
  3. In zone_rise, return the rise of a zone in metres for a warming dt.

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 much more sunlight a square metre absorbs when ice of albedo 0.650.650.65 melts to open sea, in sunlight of 280 W/m2280\ \text{W/m}^2280 W/m2.

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
← Anomalies, a running mean and a trendPollution numbers in code →
More onPollution and Waste

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Three crises, one system: links and loopsThe Triple Planetary Crisis and Pollution Control

More labs on this topic

  1. A report card for well waterMedium
  2. A week of filter readingsMedium
  3. Carbon accounts under a capEasy
  4. Sorting a ward's wasteEasy
Pollution numbers in codeMedium
All labs on this topic →