You will write functions that read a list of counts of cells made at equal times.
The idea. The change between two readings is the later count minus the earlier count. The phase follows the sign and size of the change: a fall is the death phase, no change is the stationary phase, and a rise is growth.
Your tasks.
changes. It gives a list of the changes between each reading and the next.peak_time. It gives the time at which the count is greatest.phase_of. It gives the word "death" for a fall, "stationary" for no change and "growing" for a rise.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…