title: Writing a csv file python
body: <p>So i have a list:</p>
  
  <pre><code>&gt;&gt;&gt; print references
  &gt;&gt;&gt; ['Reference xxx-xxx-xxx-007 ', 'Reference xxx-xxx-xxx-001 ', 'Reference xxx-xxx-xxxx-00-398 ', 'Reference xxx-xxx-xxxx-00-399']
  </code></pre>
  
  <p>(The list is much longer than that)</p>
  
  <p>I need to write a CSV file wich would look this:</p>
  
  <pre><code>Column 1:
  Reference xxx-xxx-xxx-007
  Reference xxx-xxx-xxx-001
  [...]
  </code></pre>
  
  <p>I tried this :</p>
  
  <pre><code>c = csv.writer(open("file.csv", 'w'))
  for item in references:
      c.writerows(item)
  Or:
  for i in range(0,len(references)):
      c.writerow(references[i])
  </code></pre>
  
  <p>But when I open the csv file created, I get a window asking me to choose the delimiter
  No matter what, I have something like
  R,e,f,e,r,e,n,c,es</p>