array1 = [,] array2 =  array3 =  textIn = f.read() #f is a file with 20 values textSplit = textIn.split() for x in range(20): textSplit[x] = textSplit[x].strip(',') #Removes , from values for y in range(10): for x in range(2): array[x][y] = textSplit[(2*y)*(x+1)+x]
For some reason, I keep getting a list index out of bounds on the line with the
array[x][y] = textSplit[(2*y)*(x+1)+x]
line in the code. I'm sure that I've initialized it, but I'm just confused now. This is my 2nd day with Python.