title: How can I fix the following error when using the zip() function? TypeError: 'list' object is not callable
body: <p>I am using python 3.6.</p>
  
  <p>I am attempting to take 2 python lists, and write them into a csv file. I need the first list to be in the first column, and the second list to be in the second column.</p>
  
  <p>Many of the solutions I have found include using the zip() function as shown below, but I'm getting an error that I cannot seem to fix:</p>
  
  <p>TypeError: 'list' object is not callable</p>
  
  <pre><code> zip_codes = ['code', '64148', '67118', '40813', '18229']
   rates = ['rate', 190.32, 99.53, 228.42, 190.32]
  
   col_format = "{:&lt;5}"*2 + "\n"
  
   with open('test.csv', 'w') as f:
        for sol in zip(zip_codes, rates): //ERROR OCCURS HERE
        f.write(col_format.format(*sol))
  </code></pre>
  
  <p>I'm expecting test.csv to contain 2 columns, whose values correspond to each list.</p>