How can I understand using of complex() function?
<p>In python documentation it is wrote for built-in function complex([real[imag]]): </p>

<pre><code>..or convert a string or number to a complex number.
</code></pre>

<p>But when I try:</p>

<pre><code>&gt;&gt;&gt; complex('string')
</code></pre>

<p>I get:</p>

<pre><code>  Traceback (most recent call last):
  File "&lt;interactive input&gt;", line 1, in &lt;module&gt;
  ValueError: complex() arg is a malformed string
</code></pre>

<p>I don't understand something. I will be glad if someone tells me what is about?
Sorry if this question is simple, but i just start to learn python.</p>
