get imaginary part of complex number python

Solutions on MaxInterview for get imaginary part of complex number python by the best coders in the world

showing results for - "get imaginary part of complex number python"
Jojo
13 Nov 2017
1>>> z = complex(2,5)
2>>> z
3(2+5j)
4>>> z.real
52.0
6>>> z.imag
75.0
8