title: How to write to consecutive CSV columns in Python
body: <p>I am writing data from a list to a csv file like this: </p>
  
  <pre><code>def writeToCsv(list, max):
      writer = csv.writer(open('file.csv', 'wb'), delimiter=' ')
      for x in range(0,max):
          writer.writerow(list[x]['year'])
  </code></pre>
  
  <p>This fills the first column with the years which is great. Now I want to fill the next column with the 'name' in the list. How can I run the above code again but have it fill the next column instead of writing over the first column with the 'name'?</p>