Source Code:
(back to article)
list1 = [1, 2, 3, 4, 5] list2 = [4, 5, 6, 7, 8] matches = list(set(list1).intersection(list2)) print(matches)
Result:
Report an issue