You will write three functions that turn the times of a cross experiment into rates and test a pattern. One finds a rate. One says how many times faster one run is than another. One tests if the rate is proportional to the concentration.
The idea. The rate is here. If the rate is proportional to the concentration, then rate divided by concentration is the same, within a small scatter, for every run.
Your tasks.
rate(time).times_faster(slow_time, fast_time).is_proportional(concs, times, tolerance). It returns True if every value of rate divided by concentration is within tolerance (a fraction, such as 0.1 for 10 %) of the first value.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…