I have the following code
a = [1, 2, 3, 4, 5, 6] b = [1, 3, 3, 4, 5, 7] counter = 0 for x,y in tuple(zip(a, b)): if x==y: counter += 1