r/Python • u/[deleted] • Mar 16 '21
Intermediate Showcase [OC] Create your own, custom, 36 million entry word list with only 55 lines of Python 3
Here is a link to the full working code https://replit.com/@BLyons/wordlist
Max: 7 characters with 12 character set generates 36 million possible words
Asks user how long of a word to create for word list (2-7 characters)
Asks user for up to 12 characters for character set
Creates the list of possible words, no repeats, up to 36 million.
Asks user if they want to view on screen, if the records are less than 1 million
Asks the user if they want to save and asks for a file name
Infinite loop runs the entire process all over again

0
Upvotes