1c = 1 + 2j # or c = complex(1, 2)
2print(c) # (1+2j)
3print(type(c)) # <class 'complex'>
4print(c.real()) # 1.0
5print(c.imag()) # 2.0
6print(c + complex(3, -5)) # (4-3j)
7
1
2c = 1 + 2j
3print(type(c))
4print(c)
5
6c1 = complex(2, 4)
7print(type(c1))
8print(c1)
9