sorting question

dsavitsk dsavitsk at e-coli.net
Thu Feb 8 01:02:29 CET 2001


i would like to iterate through all possible combinations of the characters
in a string, and i am not thinking very clearly about how to approach this.
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