Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import collections
- print collections.Counter(['a', 'b', 'c', 'a', 'b', 'b'])
- print collections.Counter({'a': 2, 'b': 3, 'c': 1})
- print collections.Counter(a=2, b=3, c=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement