A message from the skin travels along a nerve to the spinal cord. You will write a function that gives the time for an impulse, use it for three nerves, and find the slowest message.
The idea. Time is the length divided by the speed. Multiply by to change seconds into milliseconds.
Your tasks.
impulse_ms, return the time in milliseconds for an impulse to travel length metres at speed m/s.times with the time for every nerve in nerves.slowest to the name of the nerve whose message takes the longest.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…