15
Суворин Сергей
Last seen 8 months ago
Member for 3 years, 4 days
Difficulty Normal
I'm learning Python, looking for a job and a good team. I have extensive experience in supplying large machine-building production. Perhaps my knowledge and experience will be useful to someone.
The problem is solved, but there is a lot of code. Here you can do with oneliner.
result = [i for i in data if data.count(i) > 1]
I wish you success!
More
An interesting solution, however, many conditions in one line are difficult to understand
More