You will write three functions for the EDTA titration of a water sample. EDTA holds each calcium or magnesium ion in a one-to-one complex. So the moles of EDTA used equal the moles of hardness ions.
The idea. Find the moles of EDTA from the burette. Turn them into milligrams of calcium carbonate () in each litre. Then name the water by the usual scale: below 60 ppm soft, below 120 moderately hard, below 180 hard, and very hard above that.
Your tasks.
edta_mmol(volume_ml, molarity). It returns the millimoles of EDTA.hardness_ppm(mmol, sample_ml). It returns the hardness as mg of calcium carbonate in each litre.kind(ppm). It returns "soft", "moderately hard", "hard" or "very hard".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…