I have a list of items:
mylist = [\'A\',\'A\',\'B\',\'C\',\'D\',\'E\',\'D\']
I want to return a unique list of items that appear more than
Using a similar approach to others here, heres my attempt:
from collections import Counter def return_more_then_one(myList): counts = Counter(my_list) out_list = [i for i in counts if counts[i]>1] return out_list