Mega Code Archive
Categories
/
Python Tutorial
/
Data Type
To extract these parts from a complex number z, use z real and z imag
a=1.5+0.5j print a.real print a.imag