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
  • 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 noise and dust calculator
BiologyHardHigh School (11–12)Ecology and Environment › Pollution and Conservation

The noise and dust calculator

You will add the sound levels of several machines and follow the dust of a chimney through devices in series.

The idea. A level LLL in decibels stands for an intensity of 10L/1010^{L/10}10L/10 times the faintest sound. Add the intensities, then change back: L=10log⁡10(sum)L = 10\log_{10}(\text{sum})L=10log10​(sum). A device that removes a fraction eee lets 1−e1 - e1−e through.

Your tasks.

  1. Finish total_level. It takes a list of levels in dB and gives the level of all of them together.
  2. Finish dust_left. It takes a mass of dust and a list of removal fractions and gives the mass that escapes.
  3. Finish largest_number. It gives the largest number of equal machines of level one that stay at or below limit.

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 total_level([80, 80, 80, 80]). How much louder is it than one machine?

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
← The meal energy calculatorThe waste store planner →
More onEcology and Environment › Pollution and Conservation

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. The fishery modelHard
  2. The forest loss trackerHard
  3. The ozone column calculatorHard
  4. The range and timing calculatorHard
  5. The waste store plannerHard
All labs on this topic →