Python is a functional programming language. Arithmetic operations are simply done as shown below in python interactive mode.
A value can be assigned to sevaral variables simultaneously. Complex numbers are also supported. Imaginary numbers are written with a suffix j or J. In a complex number z, z.real and z.imag returns real and imaginary parts respectively. In interactive mode the last printed character is assigned to a variable’_’.
>>> x = y = z = 0
>>> -1j * 1j
>>> print _