title: How to handle CSV files in this Python script
body: <p>Using the CSV file of flowers again, fill in the gaps of the contents_of_file function to process the data, without turning it into a dictionary. How do I skip over the header record with the field names?</p>
  
  <pre class="lang-py prettyprint-override"><code>import os
  import csv
  
  # Create a file with data in it
  def create_file(filename):
      with open(filename, "w") as file:
          file.write("name,color,type\n")
          file.write("carnation,pink,annual\n")
          file.write("daffodil,yellow,perennial\n")
          file.write("iris,blue,perennial\n")
          file.write("poinsettia,red,perennial\n")
          file.write("sunflower,yellow,annual\n")
  
  # Read the file contents and format the information about each row
  def contents_of_file(filename):
      return_string = ""
      # Call the function to create the file 
      create_file(filename)
  
      # Open the file
      with open(filename) as file:
          # Read the rows of the file
          rows = csv.reader(file)
          rows = list(rows)
          # Process each row
          for row in rows:
              name, color, ty = row
              # Format the return string for data rows only
              if row != rows[0]:
                  return_string += "a {} {} is {}\n".format(name, color, ty)
      return return_string
  
  #Call the function
  print(contents_of_file("flowers.csv"))
  </code></pre>
  
  <p>After submitting my answer, the following message is shown:</p>
  
  <pre><code>Not quite, contents_of_file returned:
  a carnation pink is
  annual
  a daffodil yellow is perennial
  a iris blue is
  perennial
  a poinsettia red is perennial
  a sunflower yellow
  is annual
  
  The output should be:
  a pink carnation is annual
  a yellow daffodil is perennial
  a blue iris is perennial
  a
  red poinsettia is perennial
  a yellow sunflower is annual
  </code></pre>
  
  <p>How can I correct this problem?</p>