title: python appending a value to a sublist
body: <p>I'm running into a problem in my program and I'm not sure what I'm doing wrong. To start I created an empty list of lists. For example:</p>
  
  <pre><code>&gt;&gt;&gt; Lists = [[]]*12
  </code></pre>
  
  <p>which gives:</p>
  
  <pre><code>&gt;&gt;&gt; Lists
  [[], [], [], [], [], [], [], [], [], [], [], []]
  </code></pre>
  
  <p>However, when trying to append a value to an individual sublist it adds the value to all of the sublists. For example:</p>
  
  <pre><code>&gt;&gt;&gt; Lists[2].append(1)
  </code></pre>
  
  <p>Gives:</p>
  
  <pre><code>&gt;&gt;&gt; Lists
  [[1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1]]
  </code></pre>
  
  <p>Is there a way to append to just a single sublist so that the result would look like:</p>
  
  <pre><code>&gt;&gt;&gt; Lists
      [[], [], [1], [], [], [], [], [], [], [], [], []]
  </code></pre>