Skip to content

Instantly share code, notes, and snippets.

@BrianHicks
Created January 21, 2015 20:51
Show Gist options
  • Save BrianHicks/e8362faa2036d83f48b7 to your computer and use it in GitHub Desktop.
Save BrianHicks/e8362faa2036d83f48b7 to your computer and use it in GitHub Desktop.
>>> words = open('/usr/share/dict/words', 'r').read().lower().split()
>>> [word for word in words if 'idiot' in word]
['aspidiotus', 'idiot', 'idiotcy', 'idiothalamous', 'idiothermous', 'idiothermy', 'idiotic', 'idiotical', 'idiotically', 'idioticalness', 'idioticon', 'idiotish', 'idiotism', 'idiotize', 'idiotropian', 'idiotry', 'idiotype', 'idiotypic']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment