title: Can't change single element of multidimensional Python bool-list
body: <p>I've been struggling for hours trying to figure out why I kept getting extremely strange results in my application.  Things just kept "turning on" when they certainly weren't supposed to.  I narrowed it down to a code segment very similar to the following:</p>
  
  <pre><code>test=[[False]*28]*24
  
  print(test[5][7])
  print(test[6][7])
  test[5][7]=True
  print(test[5][7])
  print(test[6][7])
  </code></pre>
  
  <p>I only want to change the value of the 7th indice of the 5th indice in this particular case, however, various other indices are changes as well.  Running this will get me:</p>
  
  <blockquote>
    <blockquote>
      <p>False</p>
      
      <p>False</p>
      
      <p>True</p>
      
      <p>True</p>
    </blockquote>
  </blockquote>
  
  <p>While I would expect to get:</p>
  
  <blockquote>
    <blockquote>
      <p>False</p>
      
      <p>False</p>
      
      <p>True</p>
      
      <p>False</p>
    </blockquote>
  </blockquote>
  
  <p>Does anybody understand why this is happening?  Am I overlooking something?  Does it have to do with how I'm initializing my list?  I really just want a 24*28 list filled with <code>bools = False</code>.</p>