Getting Started
Developer Resources
Indices and Tables
Converts a string in the form “(real, imag)” into a complex type.
line (str) – String in the form "(real, imag)".
"(real, imag)"
complex
Complex number.
Example
>>> complexify_string("(1,2)") (1+2j)
>>> complexify_string(" ( 1 , 2 ) ") (1+2j)