You will add and multiply complex numbers by the rules alone, each number given by its two real parts. Then the checker compares your answers with Python's own complex numbers.
The idea. , and .
Your tasks.
add(a, b, c, d): return the real part and the imaginary part of the sum, as a pair.mul(a, b, c, d) in the same way for the product.mul to set square to the pair for .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.