python, how to compare two lists and get all indexes of matches code example
Example: How to compare two lists and return the number of times they match at each index in python
>>> list1 = [1,1,0,1,0,1]
>>> list2 = [0,1,0,1,1,0]
>>> sum(a == b for a,b in zip(list1, list2))
3