I am currently stuck on this error and I did not find a solution (that I understood) on Google:
TypeError: list indices must be integers or slices, not tuple
I try to do:
for x in values:
val1 = values[x][0]
val2 = values[x][1]
val3 = values[x][2]
writer.writerow([val1,val2,val3])
values is a nested list.
Every nested list has the same length.
I understand the error, but I don't get why I am getting it because if i do: print(values[400][0]), everything works out fine, no error, just the content of the list.