Python complex function example

The complex() is a built-in function in Python that returns a complex number with the value of real and imaginary