title: Importing .csv values as single list in Python
body: <p>I have a <code>csv</code> file that has one column of records that looks like this:</p>
  
  <pre><code>test1
  test2
  test3
  ...
  </code></pre>
  
  <p>I imported them into a Python list using this:</p>
  
  <pre><code>import csv
  
  results = []
  with open('test.csv', newline='') as inputfile:
      for row in csv.reader(inputfile):
          results.append(row)
  
  print(results)
  </code></pre>
  
  <p>That worked fine, however, it prints them out like this:</p>
  
  <pre><code>[['test1'],['test2'],['test3']]
  </code></pre>
  
  <p>How would I adjust my code to have them print out in a single list instead like this:</p>
  
  <pre><code>['test1','test2','test3']
  </code></pre>
  
  <p>and, is one output more preferred than the other? I realize it is use-case dependent.  I am just curious how others work with imported lists via .csv, and what advantage one would have over the other.</p>
  
  <p>Thanks!</p>