for i in list1:
if i in list2:
inBoth1.append(i)
for i in list2:
if i in list1:
inBoth2.append(i)
print(len(inBoth1))
print(len(inBoth2))
For my application, I am using StreetNamesInCountyBlank1 (list1) as one list and trying to see how many match items in another list, StreetNamesCountyBlank2 (list2). However, when I reverse the script like in the example above, I get a significant difference in values.