A water plant is lit by a lamp at five distances, and the oxygen bubbles are counted for minutes at each. You will find the rate at each distance, the distance with the fastest rate, and whether the rate always falls as the lamp moves away. Then the program draws the rates.
The idea. Rate = bubbles ÷ minutes. Less light reaches the plant from far away.
Your tasks.
rates to the bubbles per minute at each distance, in order.best_distance to the distance with the highest rate.always_falls to True if every rate is smaller than the one before it, and False if not.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…