1👍
✅
My first recommendation is to use with
to open files:
with open('filename.ext', 'mode') as f:
Using with
automagically closes your file for you so you don’t have to explicitly do so 🙂
Second, please visit: http://docs.python.org/3.3/library/csv.html#examples for a great explanation from the source.
The first example demos how to read your CSV file!
Source:stackexchange.com