Skip to content

Instantly share code, notes, and snippets.

@jxcl
Created April 3, 2010 16:23
Show Gist options
  • Save jxcl/354645 to your computer and use it in GitHub Desktop.
Save jxcl/354645 to your computer and use it in GitHub Desktop.
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