Answers for "get imaginary part of complex number python"

0

get imaginary part of complex number python

>>> z = complex(2,5)
>>> z
(2+5j)
>>> z.real
2.0
>>> z.imag
5.0
Posted by: Guest on March-29-2021

Code answers related to "get imaginary part of complex number python"

Python Answers by Framework

Browse Popular Code Answers by Language