A list gives the phases of a cardiac cycle with their times in seconds. You will find the length of the cycle, the share of a phase, and the phase at any time.
The idea. The cycle repeats, so a time after the end of the cycle goes back to the start.
Your tasks.
total. It gives the length of the whole cycle in seconds.share. It gives the per cent of the cycle taken by a phase.phase_at. It gives the name of the phase at the time t, even when t is more than one cycle.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…