Unit C – Reading/Writing CSVs

Contact CSV to Dictionary

Create a Python script csvdictionary.py that will read the contacts.csv file below into a dictionary in the same format as your Unit A – Dictionaries lab assignment. Print the dictionary in a nice format when you are done reading the CSV file. Use Gist and the Submission form to submit your code.

SelectionFile type iconFile nameDescriptionSizeRevisionTimeUser
ċ

Download
Updated line breaks.  1k v. 3 Aug 3, 2012, 3:46 PM Sophie Engle
ċ

Download
How to get and use the CSV header row.  1k v. 2 Aug 3, 2012, 5:11 PM Sophie Engle
Comments