A list gives the pressures in an atrium, a ventricle and an artery, in mm Hg, at several moments. You will decide which valve is open at each moment.
The idea. A valve opens when the pressure behind it is higher than the pressure in front of it.
Your tasks.
av_open. It gives True when the valve between the atrium and the ventricle is open.phase. It gives "filling" when that valve is open, "pumping" when the valve between the ventricle and the artery is open, and "both shut" otherwise.pumping to the number of moments in the list when the heart is pumping.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…