title: How to create list using first row of CSV file in python
body: <p>I'm trying to create a list out of the first row - the column headers - of a csv file using python.  I put together this little script, but it prints two different lists.  The first item printed is the first row of the csv and the second thing printed in the second row.</p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>import csv
  import sys
  
  with open('agentsFullOutput.csv') as csvFile:
      reader = csv.reader(csvFile)
      print csvFile.next()
      field_names_list = []
      field_names_list = csvFile.next()
      print field_names_list
  </code></pre>