Quiz on Python cmath Module



1. What does the cmath module provide?
2. Which function in the cmath module computes the square root of a complex number?
3. What does the function phase() return?
4. Which function is used to convert a complex number to its polar coordinates?
5. What is the output of cmath.exp(1j * pi)?

Advertisements