title: Table within an html document using python list
body: <p>I have a nested list of data called new_list from a csv file in python that I need to put into a simple table in a html document.</p>
  
  <p>[['Jason', 'Brown', 'Leeds', '40'], ['Sarah', 'Robinson', 'Bristol', '32'], ['Carlo', 'Baldi', 'Manchester', '41']]</p>
  
  <p>I've managed to write html in the Python console for the table heading but don't know how to reference the content from the list - e.g what to put between the <code>&lt;tr&gt;</code> tags to fill in the rows. This is what I have so far:</p>
  
  <pre><code>display = open("table.html", 'w')
  display.write("""&lt;HTML&gt;
  &lt;body&gt;
      &lt;h1&gt;Attendance list&lt;/h1&gt;
      &lt;table&gt;
          &lt;tr&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;/tr&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  &lt;/HTML&gt;""")
  </code></pre>
  
  <p>Thanks very much in advance!</p>