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

Method headings

Solutions/5_8/tableformat.py:45–49  ·  view source on GitHub ↗
(self, headers)

Source from the content-addressed store, hash-verified

43 Output data in HTML format.
44 '''
45 def headings(self, headers):
46 print('<tr>', end='')
47 for h in headers:
48 print(f'<th>{h}</th>', end='')
49 print('</tr>')
50
51 def row(self, rowdata):
52 print('<tr>', end='')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected