title: Python list of lists assignment
body: <p>One thing first: No, this is not a question about why</p>
  
  <pre><code>someThing = [[]] * 10
  someThing[0] = 1
  </code></pre>
  
  <p>gives [1,1,1,1,1,1,1,1,1,1].</p>
  
  <p>My question is a bit more tricky:
  I do the folling:</p>
  
  <pre><code>x, y, z = ([[]] for i in range(3))
  </code></pre>
  
  <p>Now I assign a value:</p>
  
  <pre><code>x[0] = 1   # This works fine
  </code></pre>
  
  <p>And now another one:</p>
  
  <pre><code>x[1] = 2   # This does not work anymore
  </code></pre>
  
  <p>It gives me an IndexError: list assignment index out of range.</p>
  
  <p>How can I make this work? As you can see, I want an empty list that contains 3 other lists to which i can append values.</p>
  
  <p>Thanks in advance!</p>