Python has built-in support for complex arithmetic. The imaginary unit is denoted by j:
z = 2+3j # A complex number
w = 1-7j # Another complex number
Complex numbers can be summed, subtracted, multiplied, divided and exponentiated:
z + w # (3-4j)
z - w # (1+10j)
z * w # (23-11j)
z / w # (...