title: How to write List of lists in csv file in python
body: <p>I have a list of lists and I want to write it in csv file
  Example list:</p>
  
  <pre><code>data=[['serial', 'name', 'subject'],['1', 'atul','tpa'],['2', 'carl','CN'].......]
  </code></pre>
  
  <p>data[0] should be column names
  everything else is row wise data</p>
  
  <p>Please suggest me a way to do this.</p>