Skip to content

Collections also counter

counter to a list

def occurrence(l: list):
    return dict(Counter(l))