title: Assignment in list slice in Python
body: <p>For example:</p>
  
  <pre><code>x = [0] * 10
  x[2:8] = [1] * 2
  </code></pre>
  
  <p>the result becomes:</p>
  
  <pre><code>[0,0,1,1,0,0]
  </code></pre>
  
  <p>Why is that happening? I didn't change the length of x but it automatically changed into 6.</p>
  
  <p>Moreover, the assignment is assign to the middle part of the x list, could anybody tell me why?</p>