title: How to write lists into a csv using python
body: <p>I am trying to write two lists into a csv file. I tried a couple of the solutions listed here: <a href="https://stackoverflow.com/questions/19302612/how-to-write-data-from-two-lists-into-columns-in-a-csv">How to write data from two lists into columns in a csv?</a>
  The izip solution did not work for me. When I tried it, I got this error:</p>
  
  <pre><code>ImportError: cannot import name 'izip'
  </code></pre>
  
  <p>I was able to import itertools, just not izip.</p>
  
  <p>Then I tried the zip solution, but for some reason it ended up erasing the content of my original csv file. The original file is there, but now there's nothing in it. That's definitely not what I'm going for!</p>
  
  <p>This is what I have right now:</p>
  
  <pre><code>for eas,nor in zip(xUTM, yUTM):
      cor=(utm.to_latlon(eas, nor, 20, 'Q'))
      treecor.append(cor)
  l=list(map(list,zip(*treecor)))
  lat=l[0]
  lon=l[1]
  </code></pre>
  
  <p>I would like to create a duplicate of my original file and add a 'lat' column and a 'lon' column to the end of the duplicate (in that order). Is there an alternative to the solutions that I've tried so far?</p>
  
  <p>Thank you!</p>