Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.