Home

Counter

1 2 from collections import Counter Counter([1, 1, 2, 3, 4]) Counter({1: 2, 2: 1, 3: 1, 4: 1})

Read more