Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
More elegant use of counter
from collections import Counter
some_data = ['a','b','v','c','l','c']
result = Counter(some_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment