dictionary text file code example
Example 1: make dictionary from text file python
d = {}
with open("file.txt") as f:
for line in f:
(key, val) = line.split()
d[int(key)] = val
Example 2: word list txt file
list of 10 000 english words : https://www.mit.edu/~ecprice/wordlist.10000
list of ~1 million words (or weak passwords or something) : https://wordlists.capsop.com/
most complete list of 480k english words : https://github.com/dwyl/english-words