You will write a function that finds the split of the middle term, use it to get the roots, and solve a problem about a photograph.
The idea. For you need and with and . Then , so the roots are and .
Your tasks.
split, return the pair (p, q) of whole numbers, with p <= q, or None when there is no such pair.roots, return the two roots, smallest first, using split. Return an empty list when there is no split.width to the root that makes sense.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…
With Standard, you also open 11 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.