Commit 2d5d9c14 authored by Klaus-Uwe Mitterer's avatar Klaus-Uwe Mitterer

Check in initial version of the CSV reader

parents
Pipeline #5 skipped
list.csv
#!/usr/bin/env python3
import csv
def getDetails(filename = 'list.csv'):
with open(filename) as csf:
reader = csv.DictReader(csf)
return [[row[key] for key in reader.fieldnames] for row in reader]
if __name__ == "__main__":
print(getDetails())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment