title: Appending new row to csv in python
body: <p>I have a csv of the form:</p>
  
  <pre><code>name,age,country  
  john,23,japan  
  mel,27,ireland
  </code></pre>
  
  <p>When I try to append with the following code:</p>
  
  <pre><code>import csv
  info=['kirsty','32','germany']
  with open('data.csv','a') as file:
      writer=csv.writer(file)
      writer.writerow(info)
  
  file.close()
  </code></pre>
  
  <p>I get this on opening the file in notepad:</p>
  
  <pre><code>name,age,country  
  john,23,japan   
  mel,27,irelandkirsty,32,germany
  </code></pre>
  
  <p>I dont understand why the new entry isn't appending to the next line.</p>