I have a list in python, how to pass it to HTML table in Python.
list1 = [['Career', 'school', 5, 'A'], ['Career', 'higher', 4, 'A'], ['Career', 'college', 3, 'A'], ['Edu', 'Blr', 20, 'A']]
html = """\<html><head><style>table, th, td {border: 1px solid black;border-collapse: collapse;}th, td {padding: 5px;text-align: left;}</style></head><table style="width:30%"><tr><th>Category</th><th>Sub-Category</th><th>Sessions</th><th>Org_name</th></tr><tr># The list should print here </tr></table></body></html> """
The output should be in table like
Category|Sub-Category|Sessions|Org_name
Career |School |5 |A
Career |Higher |4 |A
Career |College |3 |A
Edu |Blr |20 |A
Please help me.
