[Tutor] permutations?

Alex Hall mehgcap at gmail.com
Wed Dec 1 23:45:57 CET 2010


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


More information about the Tutor mailing list