magnitude(z) that takes a Python complex number z and returns its magnitude (absolute value), rounded to 2 decimal places. Recall a complex number has a .real and .imag part.magnitude(3 + 4j)
5.0
sqrt(3^2 + 4^2) = 5.
magnitude(1 + 1j)
1.41
sqrt(2) rounded to 2 decimals.
The built-in `abs()` works directly on complex numbers.
Round the result with `round(value, 2)`.