title: How to write two lists of different length to column and row in csv file
body: <p>I have two lists of different length:</p>
  
  <pre><code>list1 = ['a']
  list2 = [['apple','banana','grapes']]
  </code></pre>
  
  <p>What I want in the csv is the following:</p>
  
  <pre><code>col1  col2
  a     apple, banana, grapes
  </code></pre>
  
  <p>So first I tried <code>itertool</code> and <code>izip</code>, but it seems to put only first element of list in the list2 in col2, so it looks like:</p>
  
  <pre><code>col1  col2
  a     apple
  </code></pre>
  
  <p>How can I get the version above, with complete list in list2 as rows?</p>
  
  <p>I used the following code to store the above to csv:</p>
  
  <pre><code>import csv
  from itertools import izip
  
  with open('some.csv', 'wb') as f:
      writer = csv.writer(f)
      writer.writerows(izip(list1,sum(list2,[]))
  </code></pre>