get imaginary part of complex number python code example
Example: get imaginary part of complex number python
>>> z = complex(2,5)
>>> z
(2+5j)
>>> z.real
2.0
>>> z.imag
5.0
>>> z = complex(2,5)
>>> z
(2+5j)
>>> z.real
2.0
>>> z.imag
5.0