List Duplicates In Python As A Unique List (1 Line of Code)

preview_player
Показать описание
How do you get a list of all the duplicate values in a list using Python?

Using a list comprehension you can easily obtain a unique list of items that have duplicates in the original list.

Рекомендации по теме