-- z.Im z=3+2*I print("The imaginary part of z = ",z," is ",z.Im) z.Im = -2 print("The imaginary part of z = ",z," is ",z.Im)