Assigning empty list
<p>I don't really know how I stumbled upon this, and I don't know what to think about it, but apparently <code>[] = []</code> is a legal operation in python, so is <code>[] = ''</code>, but <code>'' = []</code> is not allowed. It doesn't seem to have any effect though, but I'm wondering: what the hell ? </p>

<p>Do some search on packing/unpacking on python and you will find your answer.
This is basically for assigning multiple variables in a single go.</p>

<pre><code>&gt;&gt;&gt; [a,v] = [2,4]
&gt;&gt;&gt; print a
2
&gt;&gt;&gt; print v
4
</code></pre>

python list binding