I'm very new to python. I got struck at this part while trying to work on arrays.
This the code:
with open("top10backup.txt", "r") as filestream:
count=0
for line in filestream:
currentline = line.split("\t")
print(currentline[0])
category[count] = currentline[0]
print(currentline[1])
source[count] = currentline[1]
count = count + 1
print (count)
I'm getting an error as:
category[count] = currentline[0]
Inconsistent use of tabs and spaces in indentation
Can anyone help explain this?