title: How to read a csv file in Python?
body: <p>I need to read a <code>csv</code> file (named <code>CityPop.csv</code>) and this is the code I have:</p>
  
  <pre><code>import csv
  
  with open ('CityPop.csv', 'r') as f:
      read_data = f.read()
      for line in f:
          record=line.strip().split(",")
  print read_data
  
  f.close()
  </code></pre>
  
  <p>But when I try to run it, nothing is output.</p>
  
  <p>I am not sure how to continue; this only leads into more advanced tasks I need to complete, which is difficult if I can't even figure this out.</p>