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. /Find the CMC from conductivity
ChemistryMediumHigh School (11–12)Surface Chemistry

Find the CMC from conductivity

You will find the critical micelle concentration of a surfactant from conductivity readings, without numpy.

The idea. Below the CMC the readings lie on one straight line, and above it on another, less steep one. The CMC is where the two lines cross. The function line returns the slope and intercept of a least squares line.

Your tasks.

  1. Complete split(conc, kappa, n). It returns two lists of points: the first n points and the rest, each as a pair of lists.
  2. Complete crossing(s1, c1, s2, c2). It returns the concentration where the lines κ=s1c+c1\kappa = s_1c + c_1κ=s1​c+c1​ and κ=s2c+c2\kappa = s_2c + c_2κ=s2​c+c2​ meet.
  3. Complete cmc(conc, kappa, n). It fits both lines and returns the crossing point.

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 n = 3 and n = 5. Which choice of split gives a sensible answer, and why?

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
← Coagulation values and the Hardy-Schulze ruleNext →
More onSurface Chemistry

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. Coagulation values and the Hardy-Schulze ruleEasy
  2. Vmax and Km from enzyme readingsMedium
  3. A catalyst and the Arrhenius equationEasy
  4. Langmuir: monolayer and surface areaMedium
  5. Freundlich constants from a tableMedium
All labs on this topic →