Haematite is iron, and a real ore is only partly haematite. You will make the program work backwards from the iron a factory wants to the haematite and the ore it must dig, and the gangue that comes with it.
The idea. Haematite needed = iron ÷ . Ore needed = haematite ÷ purity. Gangue = ore − haematite.
Your tasks.
haematite_needed, return the haematite for a mass of iron.ore_needed, return the ore for a mass of iron, given the purity.gangue, the waste dug up to make of iron from an ore.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…
With Standard, you also open 5 more problems and 2 Python labs. Everything you have used here stays free, always.