Run
cn = complex(5, 6) print('Real part is :',cn.real) print('Imaginary part is :',cn.imag)
Output