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

Method headings

Solutions/8_2/tableformat.py:20–24  ·  view source on GitHub ↗
(self, headers)

Source from the content-addressed store, hash-verified

18 Output data in plain-text format.
19 '''
20 def headings(self, headers):
21 for h in headers:
22 print(f'{h:>10s}', end=' ')
23 print()
24 print(('-'*10 + ' ')*len(headers))
25
26 def row(self, rowdata):
27 for d in rowdata:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected