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"
words.txt992 KB
Remove these ads by
Signing UpStep 1: Helpful Code Sections
fin = open('words.txt') - This line opens up the file (it can be any file)
for line in fin: - This line goes through the file one line at a time up until the 113,809th line
word = line.strip() - This line removes all the white space and formatting so that only the characters in the specific line are stored in a string with variable name word.
UOS
says:
Feb 4, 2013. 12:53 AMReply
Hammock Boy (author)
in reply to Feb 6, 2013. 8:35 AMReply

























Not Nice



















Visit Our Store »
Go Pro Today »



