[Tutor] Read a file, Load a dictionary
Dave Angel
davea at davea.name
Fri Jul 25 01:13:37 CEST 2014
Glenn Lester <glester at avant.ca> Wrote in message:
>
?????????
You forgot to make your message a text one, and also omitted your
Python version. So I'll respond from memory, assuming you're
using version 3.5
The csv reader can make a dictionary from each line of the csv
file. So you can readily make a list of dicts.
https://docs.python.org/3.5/library/csv.html
--
DaveA
More information about the Tutor
mailing list