A farmer sprays a crop and wants to know how long the larvae will take to fall below the level that the crop can bear. You will write the sums and a rule for deciding to act.
The idea. If a share of the larvae die each day, the number is multiplied by each day.
Your tasks.
larvae_after. It gives the larvae on a plant after some days.days_below. It gives the first whole day on which the larvae are at or below the limit.must_act. It gives True if the average of the counts is above the limit.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…