Created
November 2, 2016 04:31
-
-
Save kevinschaich/ae001de1ae47f74fb05987ad6b794536 to your computer and use it in GitHub Desktop.
Cool things in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Counter: returns dictionary of {element: count} for a given list | |
from collections import Counter | |
counter = Counter(list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment