Random word generator- Python
Reading a local word list If you’re doing this repeatedly, I would download it locally and pull from the local file. *nix users can use /usr/share/dict/words. Example: word_file = “/usr/share/dict/words” WORDS = open(word_file).read().splitlines() Pulling from a remote dictionary If you want to pull from a remote dictionary, here are a couple of ways. The requests … Read more