Literal Syntax

complex numbers can be simply initialized as a sum of real and imaginary parts.

Example

>>> 1+2j
(1+2j)
>>> 1.0+2.0j
(1+2j)