Skip to content

Instantly share code, notes, and snippets.

View seifip's full-sized avatar
🧪
Working on colabra.app

Philip Seifi seifip

🧪
Working on colabra.app
View GitHub Profile
@seifip
seifip / count_words.py
Created August 11, 2017 15:13 — forked from bradmontgomery/count_words.py
playing with python's `collections.Counter`
"""
Use a Counter to find the most common words in "The Wonderful Wizard of Oz" by
L. Frank Baum.
Available in plain text at:
https://ia700500.us.archive.org/2/items/thewonderfulwiza00055gut/wizoz10.txt
short link: http://bit.ly/thewonderfulwizard
Note: This code also counts the words in the header, so it's not a *realistic*