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

Method headings

Solutions/3_8/tableformat.py:39–43  ·  view source on GitHub ↗
(self, headers)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected