Created
April 3, 2010 16:23
-
-
Save jxcl/354645 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def reindex(): | |
dictionary = open('US.dic', 'r') | |
linecount = 0 | |
length = 0 | |
length_breaks = [] | |
for line in dictionary: | |
word_len = len(line) | |
if word_len > length: | |
length_breaks.append(linecount) | |
length = word_len | |
return length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment