MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / headings

Method headings

Solutions/3_6/tableformat.py:32–36  ·  view source on GitHub ↗
(self, headers)

Source from the content-addressed store, hash-verified

30
31class HTMLTableFormatter(TableFormatter):
32 def headings(self, headers):
33 print('<tr>', end=' ')
34 for h in headers:
35 print('<th>%s</th>' % h, end=' ')
36 print('</tr>')
37
38 def row(self, rowdata):
39 print('<tr>', end=' ')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected