code: def text2html_table(items):
      "Put the texts in `items` in an HTML table."
      html_code = f
      html_code += f"""  <thead>\n    <tr style="text-align: left;">\n"""
      for i in items[0]: html_code += f"      <th>{i}</th>\n"
      html_code += f"    </tr>\n  </thead>\n  <tbody>\n"
      for line in items[1:]:
          html_code += "    <tr>\n"
          for i in line: html_code += f"      <td>{i}</td>\n"
          html_code += "    </tr>\n"
      html_code += "  </tbody>\n</table><p>"
      return html_code
docs: Put the texts in `items` in an HTML table.