python take real part of complex value code example Example: how to take input complex number in python complx = complex(input()); print(complx.real, complx.imag);