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. /Choose the refining method
ChemistryMediumHigh School (11–12)General Principles and Processes of Isolation of Elements

Choose the refining method

You will write a small helper that suggests a refining method, and the one-pass zone refining formula. A metal is described by a dictionary of facts, such as {"boils_low": True}.

The idea. Each method uses one property. Check the properties in this order: a volatile carbonyl (Mond), a volatile iodide for a metal spoilt by oxygen (van Arkel), a low boiling point (distillation), a low melting point (liquation), semiconductor purity (zone refining). Otherwise use electrolysis.

Your tasks.

  1. Complete method(facts). It returns one of "Mond", "van Arkel", "distillation", "liquation", "zone refining" or "electrolytic". A missing key means False.
  2. Complete after_one_pass(k, x_over_l), the share of impurity left: 1−(1−k)e−kx/l1 - (1 - k)e^{-kx/l}1−(1−k)e−kx/l.

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, describe copper with a dictionary and check that the answer is electrolytic.

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
← Faraday's law for a metal plantSort the polymers →
More onGeneral Principles and Processes of Isolation of Elements

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. Faraday's law for a metal plantEasy
  2. Oxygen pressure over an oxideMedium
  3. Where two Ellingham lines crossMedium
  4. A flotation balanceMedium
  5. Metal in a mineralEasy
All labs on this topic →