Anagram

Nikolai Kirsebom nikolai.kirsebom at siemens.no
Thu Jan 24 09:42:53 EST 2002


On Wed, 23 Jan 2002 21:21:58 GMT, Joseph A Knapka
<jknapka at earthlink.net> wrote:

>OK :) Here are a couple of ways to generate all the unique
>anagrams of a list (which is now what you asked for,
>but *is* fun!):

Thanks to all responses.  Actually, I was wrong in the 'problem'
statement, what I was looking for, as you stated Joseph to be more
fun, is to get all the actual unique anagrams.

Now I'll have to find out how to 'compact' the code and still keep it
nice and readable - for the Lisp friend.

Nikolai





More information about the Python-list mailing list