組み込み関数 complex
complex([real[, imag]])
値 real + imag*j の複素数型数を返します。高校の数学では「real + imag*i」と習うはずですが、jになっています。電気回路ではjと扱うことからだと思います。
#coding: shift-jis
a = complex(1,4)
print a
b = complex(4)
print b
c = complex(0,4)
print c
d = complex()
print d
raw_input()
出力画面:
(1+4j)
(4+0j)
4j
0j