Source Code:
(back to article)
original_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 2, 4, 6, 8] duplicate_list = [item for item in original_list if original_list.count(item) > 1] print(duplicate_list)
Result:
Report an issue