Devan L wrote: > Heh, it reminds me of the code I used to write. > > def sort_string(word): > return ''.join(sorted(list(word.lower()))) > f = open('dictionary.txt','r') > lines = [line.rstrip('\n') for line in f.readlines()] > f.close() > dictionary = dict((sort_string(line),line) for line in lines)
That's definitely not the kind of dictionary that he wants. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list