Skip to main content
64
William64
.com
Menu
☰
Projects
Writing
About
Aaron
Say hello
↗
Pebble
/
Repositories
/
demo-garden-log
Demo · fictional sample · read-only
Files
History
garden.py
demo-garden-log
/
garden.py
212 B
11 lines
at
acdf1782ce8c
1
"""Print the plants in plants.csv (demo)."""
2
import csv
3
4
5
def load(path="plants.csv"):
6
with open(path, newline="") as f:
7
return list(csv.DictReader(f))
8
9
10
for plant in load():
11
print(plant["name"])