Skip to content

Instantly share code, notes, and snippets.

@binarymatt
Created July 11, 2013 19:00
Show Gist options
  • Select an option

  • Save binarymatt/5978228 to your computer and use it in GitHub Desktop.

Select an option

Save binarymatt/5978228 to your computer and use it in GitHub Desktop.
python is awesome
import collections
def extract_top_ten(str):
return collections.Counter(str.split()).most_common(10)
@stavxyz
Copy link
Copy Markdown

stavxyz commented May 3, 2016

yes, python is awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment