Re: writing to lists within a dictionary

2007-09-20 Thread Duncan Smith
[EMAIL PROTECTED] wrote: > I am trying to write a basic anagram system, that takes a text file > line by line and by sorting the string into its alphabetical form > compares it to keys within a dictionary. > > If it matches a key I want to add it (in its unordered form) to a list > for that key. >

writing to lists within a dictionary

2007-09-20 Thread cokofreedom
I am trying to write a basic anagram system, that takes a text file line by line and by sorting the string into its alphabetical form compares it to keys within a dictionary. If it matches a key I want to add it (in its unordered form) to a list for that key. So far this is what I have import sy