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.
[['Jason', 'Brown', 'Leeds', '40'], ['Sarah', 'Robinson', 'Bristol', '32'], ['Carlo', 'Baldi', 'Manchester', '41']]
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 <tr> tags to fill in the rows. This is what I have so far:
display = open("table.html", 'w')
display.write("""<HTML>
<body>
<h1>Attendance list</h1>
<table>
<tr></tr>
<tr></tr>
</table>
</body>
</HTML>""")
Thanks very much in advance!
