Complex.Im($z$) returns a real number equal to the complex part of $z$
The following example defines $z$ as a complex number and sets $y$ equal to its imaginary part.
-- Complex.Im(z) z = 3 + 2 * I y = Complex.Im(z) print("z = ",z) print("y = Im[z] = ",y)
z = (3 + 2 I) y = Im[z] = 2