Gerard Flanagan wrote:
> [EMAIL PROTECTED] wrote:
> > hi
> > i need to do something like this
> > eg given a number (as a string) = "123"
> > there are a few combination i want to find with this string, ie
> > "132","321","231","312" and "213". so there are 6 combinations
> > altogether. i remember
[EMAIL PROTECTED] wrote:
> hi
> i need to do something like this
> eg given a number (as a string) = "123"
> there are a few combination i want to find with this string, ie
> "132","321","231","312" and "213". so there are 6 combinations
> altogether. i remember there's a formula for this, but for
hi,
try this:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465
cheers.
--
http://mail.python.org/mailman/listinfo/python-list