You will write a function that chooses a method of separation from one clue about a mixture: one part is magnetic, one part sublimes, or two liquids mix and have a gap between their boiling points. The program then tries it on five mixtures.
The idea. A method uses a property that differs between the parts. Simple distillation needs boiling points more than apart; closer than that, fractional distillation.
Your tasks.
"magnetic", return "a magnet"."sublimes", return "sublimation"."liquids", return "simple distillation" when gap is more than , and "fractional distillation" otherwise.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…