z = 3 + 2j
Get real part:
z.real
Get imaginary part:
z.imag
Calculate conjugate – it flips the sign of imaginary unit:
z.conjugate()
Other operations:
z1 = 3 + 2j
z2 = 2 + 3j
z1 + z2
z1 - z2
z1 * z2
z1 / z2
z1 ** z2
These operations CAN'T be used – they throw an error:
z1 // z2 # floor division
z1 % z2 # remainder of division