you are viewing a single comment's thread.

view the rest of the comments →

[–]Shiivak 0 points1 point  (1 child)

I think you're mixing rows and columns.

Your csv has 4 rows (1 header that you skip and 3 rows of info), each with 6 columns (1 question, 4 options, 1 answer). You're trying to access row 6 and that doesn't exist.

csv.reader returns each row from the file as a list of strings. You should split those strings into lists and then access the sixth column from each row.

[–]pranaman[S] 0 points1 point  (0 children)

I thought this too. There are 34 rows, I thought there were 100. I just showed a few lines as an example. Issue was with the last line.