else/Dictionary
Voussoir a62f6e582d else
It's been a while since I updated this.
2015-06-25 21:03:45 -07:00
..
__init__.py else 2015-06-25 21:03:45 -07:00
acronyms.py else 2015-06-25 21:03:45 -07:00
common.py else 2015-06-25 21:03:45 -07:00
compound.py else 2015-06-25 21:03:45 -07:00
crosswd.py else 2015-06-25 21:03:45 -07:00
crswd-d.py else 2015-06-25 21:03:45 -07:00
fiction.py else 2015-06-25 21:03:45 -07:00
freq-int.py else 2015-06-25 21:03:45 -07:00
freq.py else 2015-06-25 21:03:45 -07:00
kjvfreq.py else 2015-06-25 21:03:45 -07:00
names-f.py else 2015-06-25 21:03:45 -07:00
names-m.py else 2015-06-25 21:03:45 -07:00
names.py else 2015-06-25 21:03:45 -07:00
oftenmis.py else 2015-06-25 21:03:45 -07:00
places.py else 2015-06-25 21:03:45 -07:00
README.md else 2015-06-25 21:03:45 -07:00
single.py else 2015-06-25 21:03:45 -07:00

Dictionary

I made this so that I could more easily acess a list of words. Previousy I had to open() a text file each time. Now, I can:

import dictionary.common as common
import random

print(random.choice(common.words))