A red blood cell holds about per cent salt. You will write a function that says which way water moves when a cell sits in a solution, then use it on four solutions.
The idea. In osmosis, water moves towards the more concentrated side. If the outside is more concentrated, water leaves the cell and it shrinks. If the inside is more concentrated, water enters.
Your tasks.
water_moves, return "into the cell", "out of the cell" or "no net movement", from the two concentrations.moves to a dictionary from each solution's name to the result for the cell.shrinks to a list of the names of the solutions in which the cell shrinks.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…