please help with the issue. I need to compare an element of a loop with a previous element in python 3. The code below gives the error:
TypeError: 'int' object is not subscriptable
for index, (i, j) in enumerate(zip(a_list, b_list)):
if j[index] == j[index-1]:
a = 0