[Tutor] How to generate permutations of a given string

Asrarahmed Kadri ajkadri at googlemail.com
Mon Nov 27 13:06:54 CET 2006

Hello folks,

Can someone help me with a simple algorithm to generate permutations of a
given string:

Input string:---->> 'abc'

Output:------->>  ['abc','acb','bac','bca','cab','cba']

Asrarahmed Kadri

To HIM you shall return.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061127/9fbb395b/attachment.htm 

More information about the Tutor mailing list