You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reckon, import it as a list and use it to your preference. If that's what you are looking for, then,
Update:
Obivously, best way to read a huge list more often is through a Trie. It can be useful if you need the word list to do spell check, auto completion, generate a random dictionary list and much more.
# Strip words from txt file
raw_list = open('file_path/name', "r").splitlines()
'''
raw_list = 'Wooden\nsome\nword\nthis\nis\na\nword\nalmost\ngutter\ngrim\nburn\ntime\nvictory\ngame\nappend'
raw_list = raw_list.splitlines()
'''
dict_list = []
for line in raw_list:
dict_list.append(line)
# print(dict_list)
No description provided.
The text was updated successfully, but these errors were encountered: