title: List of Tuples to CSV
body: <p>I have a list of tuples which look like this</p>
  
  <pre><code>  [("color", "blue"), ("size","50"), ("length","60"),("color", "red"), ("size","40")]
  </code></pre>
  
  <p>And i would like to have a <code>csv</code> file like this (without that <code>Header</code>,<code>values</code> of course )</p>
  
  <p><code>Header</code>   1.  color | size | lenght</p>
  
  <p><code>values</code>   2.  blue  |  50  | 60</p>
  
  <p><code>values</code>   3.  red   |  40  | none</p>
  
  <p>I tried this, but it does not work well</p>
  
  <pre class="lang-py prettyprint-override"><code>with open('file.csv','w') as out:
      for title in final: # list name
          titles.append(title[0])
      csv_out=csv.writer(out)
      csv_out.writerow(titles)
      for row in final:
          csv_out.writerows(row[1])
  </code></pre>