Created
July 11, 2013 19:00
-
-
Save binarymatt/5978228 to your computer and use it in GitHub Desktop.
python is awesome
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
import collections | |
def extract_top_ten(str): | |
return collections.Counter(str.split()).most_common(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, python is awesome