How assignment works with python list slice
<p>Python doc says that slicing a list returns a new list.
Now if a "new" list is being returned I've the following doubts related to "Assignment to slices"</p>

<pre><code>a = [1, 2, 3]
a[0:2] = [4, 5]
print a
</code></pre>

<p>Now the output would be:</p>

<pre><code>[4, 5, 3] 
</code></pre>

<ol>
<li>How can something that is returning something come on the left side of expression.</li>
<li>Yes, I read the docs and it says it is possible, now since slicing a list returns a "new" list,why is the original list being modified, I am not able to understand the mechanics behind it.</li>
</ol>
