A list gives the stops of one round of the blood and the oxygen at each stop. You will move from stop to stop, name the loop of each stop and pick out the stops where the blood is rich in oxygen.
The idea. Stops 1 to 4 belong to the pulmonary loop. Stops 5 to 8 belong to the systemic loop. The round ends where it began.
Your tasks.
next_stop. It gives the stop after a given stop, and the first stop after the last one.circuit. It gives "pulmonary" or "systemic" for a stop.rich to the list of the stops where the oxygen is "high", in order.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…