Im pretty new to python and am trying to right a small script....
#!/usr/bin/python
import csv
import string
itemlist = []
reader = csv.reader(open("statement.csv", "rb"))
for row in reader:
item = row[4]
itemlist.append(item)
itemlist = list(set(itemlist))
Every time I run it though I get the error :
Traceback (most recent call last):
File "bank2.py", line 11, in ?
item = row[4]
IndexError: list index out of range
Can anyone help ??