when running this portion of my code I get the above error, the csv file has 3 values per row, first a name, then id number, lastly a numerical score. I can not figure out why it is saying the list index is out of range.
when I change the code inside the for loop to just print row it prints it out as if it was a list with 3 values.
the csv file looks like this
sean,12,15
harry,132,12
ben,3322,11
etc,
I've looked through the file to see if any rows did not have 3 values in each one but that was not the case. Each line has exactly 3 values seperated by 2 commas.
points=[]
names = []
ids = []
quiztakers = 0
totalscore = 0
with open('scoreFilecsv','r+') as score:
reader = csv.reader(score,delimiter=',')
for row in score:
point = row[2]
totalscore += point
quiztakers += 1
name = row[0]
ids1 = row[1]
points.append(point)
names.append(name)
ids.append(ids1)