The ratio rule is quick, but a computer can check it against every term. In this lab you find the greatest terms of by trying every term, then by the rule, and then you test for a tie.
Your tasks.
by_trying, return the list of the numbers of the greatest terms of . Work out every term, find the greatest, and list every place that equals it. Count the first term as 1.by_rule, return the same list, using . Use a Fraction so that a whole number is recognised exactly.ties, return True when two terms are equal and greatest, and False otherwise.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…