[Tutor] permutations?

शंतनू shantanoo at gmail.com
Thu Dec 2 14:54:40 CET 2010


Following link could be useful:

http://stackoverflow.com/questions/104420/how-to-generate-all-permutations-of-a-list-in-python

On Thu, Dec 2, 2010 at 04:15, Alex Hall <mehgcap at gmail.com> wrote:

> Hi all,
> I am wondering if there is a python package that will find
> permutations? For example, if I have (1, 2, 3), the possibilities I
> want are:
> 12
> 13
> 23
> 123
> 132
> 231
>
> Order does not matter; 21 is the same as 12, but no numbers can
> repeat. If no package exists, does someone have a hint as to how to
> get a function to do this? The one I have right now will not find 132
> or 231, nor will it find 13. TIA.
>
> --
> Have a great day,
> Alex (msg sent from GMail website)
> mehgcap at gmail.com; http://www.facebook.com/mehgcap
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101202/eaef3c88/attachment.html>


More information about the Tutor mailing list