mirror of
https://github.com/ltcptgeneral/cse151b-final-project.git
synced 2024-11-13 22:56:19 +00:00
16 lines
372 B
Python
16 lines
372 B
Python
|
import pandas
|
||
|
|
||
|
print('Loading in words dictionary; this may take a while...')
|
||
|
df = pandas.read_json('words_dictionary.json')
|
||
|
print('Done loading words dictionary.')
|
||
|
words = []
|
||
|
for word in df.axes[0].tolist():
|
||
|
if len(word) != 5:
|
||
|
continue
|
||
|
words.append(word)
|
||
|
words.sort()
|
||
|
|
||
|
with open('words.txt', 'w') as f:
|
||
|
for word in words:
|
||
|
f.write(word + '\n')
|