title: Initializing matrix in Python?
body: <p>I'm using this Code to create a python matrix (5 rows, 2 columns) :</p>
  
  <pre><code>[[0 for x in xrange(2)] for x in xrange(5)]
  </code></pre>
  
  <p>Can some one explain that part <code>0 for x in xrange(2)</code> and why it didn't worked when i tried to do it as follows :</p>
  
  <pre><code>[[0 for x in xrange(2)] 0 for x in xrange(5)]
  </code></pre>