sorting question

dsavitsk dsavitsk at
Thu Feb 8 11:30:04 EST 2001

Thank you all for the suggestions.

i am trying to unscramble scrambled words (which i am frustratingly bad at)
so i send all of the permutations to Word's spell checker and see what it
thinks are words.  I'll post the code this afternoon when i'm done in case
anyone wants it.


"dsavitsk" <dsavitsk at> wrote in message
news:tmlg6.61202$Ch.11526305 at
> i would like to iterate through all possible combinations of the
> in a string, and i am not thinking very clearly about how to approach
> that is, if the initial string is 'bar', i want to print
> ['bar', 'bra', 'abr', 'arb', 'rba', 'rab']
> any hints?
> thanks,
> ds

More information about the Python-list mailing list