I would like to Compare two lists and show the amount of matches until no match is found.
for example if i have
list1 = [1,2,3,4,5,6]
list2 = [1,2,3,4,5,6]
And then I shuffle each list, each time I shuffle the list I want to print out how many matches in the list I received for example
lets say they get shuffled one time and this is the output
shuffled_list1 = 2,4,5,3,1,6
shuffled_list2 = 2,4,5,1,3,6
from the output I would like to receive 3 matches found.since the six came after a non match I do not want that to be counted.