HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Python Labs
  2. /Hardness from an EDTA titration
ChemistryMediumHigh School (11–12)Hydrogen and the s-Block Elements

Hardness from an EDTA titration

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 (100 g/mol100\ \text{g/mol}100 g/mol) 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.

  1. Complete edta_mmol(volume_ml, molarity). It returns the millimoles of EDTA.
  2. Complete hardness_ppm(mmol, sample_ml). It returns the hardness as mg of calcium carbonate in each litre.
  3. Complete kind(ppm). It returns "soft", "moderately hard", "hard" or "very hard".

Run it first, just as it is. The checker at the end prints FAIL for each task. Then do the tasks one at a time, and run the program again after each one. A Hint appears under every check that still fails.

When every line says PASS, try a 100 mL sample that needs 2.5 mL of 0.0100 mol/L EDTA. What kind of water is it?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A worked solution

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 save
← All Labs
← Find the CMC from conductivityStrength of a hydrogen peroxide solution →
More onHydrogen and the s-Block Elements

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. Name the s-block compoundMedium
  2. The Solvay process in numbersMedium
  3. When do the carbonates break up?Medium
  4. The easiest metal to ionise in waterMedium
  5. Strength of a hydrogen peroxide solutionMedium
All labs on this topic →