A student measured the pH inside and outside the thylakoids of three samples. You will find the steepness of the gradient in each, say which side is more acid, and name the sample with the steepest gradient.
The idea. The samples are in a dictionary, as pairs of the lumen pH and the stroma pH. Each pH unit is a tenfold change in the proton concentration.
Your tasks.
fold, return how many times higher the proton concentration is in the lumen than in the stroma.acid_side, return "lumen" when the lumen pH is lower than the stroma pH, and "stroma" otherwise.steepest to the name of the sample whose gradient is the steepest.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 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.