Python - Count of matching elements among lists (Including duplicates)
Given 2 lists, count all the elements that are similar in both the lists including duplicated. Input : test_list1 = [3, 5, 6, 7, 2, 3, 5], test_list2 = [5, 5, 3, 9, 8, 5] Output : 4 Explanation : 3 repeats 2 times, and 5 two times, totalling to 4. Input : test_list1 = [3, 5, 6], test_list2 = [5, 3,