title: More elegant way to create a 2D matrix in Python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2397141/how-to-initialize-a-two-dimensional-array-in-python">How to initialize a two-dimensional array in Python?</a>  </p>
  </blockquote>
  
  
  
  <p>I have always written this part of code in this way: every time I need it, I use this python code:</p>
  
  <pre><code>for x in range(8):
          a.append([])
          for y in range(8):
              a[x].append(0)
  </code></pre>
  
  <p>However, I'd like to know if there's a way to beautify this piece of code.
  I mean, how do you create a bidimensional matrix in python, and fill it with 0?</p>