demo_ref_complex2.py:
x = complex('3+5j') print(x)
➜ begtut>>python demo_complex2.py
(3+5j)