On Mon, Oct 22, 2012 at 3:35 PM, Dewhirst, Rob <robdewhi...@gmail.com> wrote: > >> import csv >> ifile = open('test.csv', "r") >> reader = csv.reader(ifile) >> inData = [] >> for row in reader: >> inData.append[row] >> ifile.close() >> >> you can now loop through inData to your heart's desire.
Alternatively: import csv with open('test.csv', 'rb') as ifile: inData = list(csv.reader(ifile)) _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor