You will write the ratio test as a function, find a value of , and count the pairs of a list that have infinitely many solutions.
The idea. Do not divide: cross-multiply. The lines cross when . If , they coincide when and are parallel otherwise.
Your tasks.
kind, return "one", "none" or "many" for the number of solutions of the pair.k_for_no_solution, return the for which and have no solution. Assume is not .many_count to how many pairs in pairs have infinitely many solutions.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…