Last active
August 29, 2015 14:25
-
-
Save aliva/72f36084186ee9e3a080 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 random | |
# list of words | |
words = random.shuffle([w.strip() for w in open("/usr/share/dict/words").readlines()]) | |
# get word and remove it from list | |
word = words.pop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment