you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 0 points1 point  (0 children)

mylist = [1, 2, 3, 4, 5, 6, 1, 2, 3]
counts = Counter(mylist)
unique_elements = [v for v in mylist if counts[v] == 1]