Quiz on Python cmath.sqrt() Function



1. What does the cmath.sqrt function compute?
2. Which module must be imported to use the cmath.sqrt function?
3. What type of input can the cmath.sqrt function accept?
4. What will cmath.sqrt(-1) return?
5. Is cmath.sqrt function capable of returning non-real results?

Advertisements