A dictionary tells which part of the male system comes after each part. You will follow it to write the route of a sperm, count the steps between two parts, and find the parts that a block would cut off.
The idea. The route is a chain. Each part points to the next one, until the sperm leaves the body.
Your tasks.
route_from. It gives the list of parts from start to the urethral opening, in order.steps_between. It gives how many steps lie between two parts on the route.cut_off. It gives the parts that come after a blocked part, 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…