Hello, everyone
the follow error shows when i try run my code
if (i==2): width = line[0,3]
TypeError: string indices must be integers
The code of error is this
for line in fl:
i += 1
if (i==2): width = line[0,3]
elif (i==3): frames = line[1,1]
elif (i>3): append(array_color, line)
fl.close()
Please, can someone explain me why this error occur? Thank you.