A plant part grows by two rules. Under the arithmetic rule it adds the same weight each day. Under the geometric rule it doubles each day. You will build the two lists and compare them.
The idea. Both start at . The arithmetic part gains a day. The geometric part doubles every day.
Your tasks.
arithmetic to the weight on each of the days 0 to 4 under the arithmetic rule.geometric to the weight on each of the days 0 to 4 under the geometric rule.first_day to the first day on which the geometric weight is larger than the arithmetic weight.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…