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.
method(facts). It returns one of "Mond", "van Arkel", "distillation", "liquation", "zone refining" or "electrolytic". A missing key means False.after_one_pass(k, x_over_l), the share of impurity left: .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 join the discussion.
Loading…