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

Class CSVTableFormatter

Solutions/6_12/tableformat.py:31–39  ·  view source on GitHub ↗

Output data in CSV format.

Source from the content-addressed store, hash-verified

29 print()
30
31class CSVTableFormatter(TableFormatter):
32 '''
33 Output data in CSV format.
34 '''
35 def headings(self, headers):
36 print(','.join(headers))
37
38 def row(self, rowdata):
39 print(','.join(rowdata))
40
41class HTMLTableFormatter(TableFormatter):
42 '''

Callers 1

create_formatterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected