One of the challenges of working with large amounts of data in a program is how to do it efficiently. In Python importing the code could not be easier, but everything gets bogged down when you try to work with it and search for items inside of modify it. In these next few examples I will provide several solutions to working with a word list containing practically every word in the English Language to solve various problems.
If you are new to Python - a great first language - everything can be downloaded from here
Attached is the actual word lists in a .txt file. There are 113,808 individual words, each on their own line.
When you run the program the script and word list need to be in the same folder, otherwise you will get an error to the effect of "no such file exists"