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

Method headings

Solutions/7_6/tableformat.py:38–42  ·  view source on GitHub ↗
(self, headers)

Source from the content-addressed store, hash-verified

36
37class HTMLTableFormatter(TableFormatter):
38 def headings(self, headers):
39 print('<tr>', end=' ')
40 for h in headers:
41 print('<th>%s</th>' % h, end=' ')
42 print('</tr>')
43
44 def row(self, rowdata):
45 print('<tr>', end=' ')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected