Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- some_list = ['a', 'b', 'c', 'b', 'd', 'm', 'n', 'n']
- print(list({char for char in some_list if some_list.count(char) > 1}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement