import csv import sys with open(sys.argv[1], mode='r') as csv_file: rows = list(csv.DictReader(csv_file)) for row in rows: print(row)