title: Transferring CSV file to a Python list
body: <p>I'm trying to get data from a CSV file to a list in Python. This is what I have so far:</p>
  <pre><code>import csv
  
  with open('RawEirgrid2.csv','rb') as csvfile:
      M = csv.reader(csvfile, delimiter=',')
  
  print(M[0])
  </code></pre>
  <p>I'm trying to print the first item in the list just confirm the code is working (it's currently not). I get the following error:</p>
  <blockquote>
  <p>TypeError: '_csv.reader' object is not subscriptable</p>
  </blockquote>
  <p>In every example I look at it appears it should be subscriptable, so I'm not sure whats going on.</p>