title: Create a csv with multiple entries in list
body: <p>I am using csv package to generate csv with lists and 'zip' to connect two list at same index. Now if variable 'name' has lists inside meaning multiple names for each 'file' and want to add in each corresponding row. Only thing there can be multiple names for each file .</p>
  
  <p>variable file and list are lists:</p>
  
  <p>one element from 'file' connects to one element of 'name' bu now that one element of 'name' is a list but want it in different columns in csv.</p>
  
  <pre class="lang-py prettyprint-override"><code>with open('output.csv', 'w') as f:
      writer = csv.writer(f)
      writer.writerows(zip(file, name))
  </code></pre>
  
  <p>The below is current output</p>
  
  <pre><code>1.txt,"['XYZ', 'ABC', 'PQR']"
  2.txt,"['rtgs', 'gfd']"
  </code></pre>
  
  <p>The below is expected </p>
  
  <pre><code>1.txt,'XYZ', 'ABC', 'PQR'
  2.txt,'rtgs', 'gfd'
  </code></pre>
  
  <p>So I want separate columns for each value in second column</p>