title: How to read lines from a file into a multidimensional array (or an array of lists) in python
body: <p>I have a file with a format similar to this:</p>
  
  <pre><code>a,3,4,2,1
  3,2,1,a,2
  </code></pre>
  
  <p>I want to read the file and create an array of lists</p>
  
  <p>in a way that:</p>
  
  <pre><code>array[0] = ['a','3','4','2','1']
  array[1] = ['3','2','1','a','2']
  </code></pre>
  
  <p>How can I do that?</p>
  
  <p>So far I am stuck with:</p>
  
  <pre><code>f = open('./urls-eu.csv', 'r')
  for line in f:
      arr = line.split(',')
  print arr
  </code></pre>
  
  <p>I am really new to python.</p>