-1

I am running python 3.0 and need to make a permutation from a list of 7 numbers in that list, but I am not finding any decent sample code or guide to create all the permutations.

Could someone please put some sample code as to how I would make and be able to print all the permutations.

  • 4
    http://docs.python.org/2/library/itertools.html#itertools.permutations – TerryA Aug 12 '13 at 07:19
  • 1
    For *not finding* you probably meant that you did not *search*. Searching `python permutations` on google gives the documentation for `itertools` as first result. – Bakuriu Aug 12 '13 at 07:23

1 Answers1

2

Itertools has combinations and permutations.

RazerM
  • 5,128
  • 2
  • 25
  • 34