title: What is the difference between a[:]=b and a=b[:]
body: <pre><code>a=[1,2,3]
  b=[4,5,6]
  c=[]
  d=[]
  </code></pre>
  
  <p>Whats the difference between these two statements?</p>
  
  <pre><code>c[:]=a
  d=b[:]
  </code></pre>
  
  <p>But both gives the same result.</p>
  
  <p>c is [1,2,3] and d is [4,5,6]</p>
  
  <p>And is there any difference functionality wise?</p>