You will check three wells against the acceptable limits for drinking water of IS 10500, and say which ones are fit to drink.
The idea. Hardness, as mg/L of calcium carbonate, is . A well fails an indicator if its value is above the limit, or if its pH is outside to .
Your tasks.
hardness, return the hardness of a well.failures, return a list of the names of the indicators that the well fails, in the order of limits, with "pH" first if the pH is out of range. Use hardness(well) for "hardness".fit_to_drink, return True if the well fails nothing.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…