complex('real','imaginary') returns complex number real: Required, ( default 0 ) the real part of the complex number. Can be a string input imaginary: (optional) ( default = 0 ) Imaginary part of the complex number .
We can create a complex number and check the data type by using type()