Easiest way to turn a list into an HTML table in python?

Use tabulate from tabulate import tabulate table = [[‘one’,’two’,’three’],[‘four’,’five’,’six’],[‘seven’,’eight’,’nine’]] print(tabulate(table, tablefmt=”html”)) Which produces the following output. <table> <tbody> <tr><td>one </td><td>two </td><td>three</td></tr> <tr><td>four </td><td>five </td><td>six </td></tr> <tr><td>seven</td><td>eight</td><td>nine </td></tr> </tbody> </table>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)