MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / generate_csv

Function generate_csv

example_code/item_016.py:127–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126print("Example 10")
127def generate_csv():
128 yield ("Date", "Make", "Model", "Year", "Price")
129 for i in range(100):
130 yield ("2019-03-25", "Honda", "Fit", "2010", "$3400")
131 yield ("2019-03-26", "Ford", "F150", "2008", "$2400")
132
133
134print("Example 11")

Callers 1

item_016.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected