@BlueBowser/

SetPermutations

Python

No description

fork
loading
Files
  • main.py
  • info.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import itertools

original = [1,2,3,4,5,6,7,8,9,10]

itertools.permutations
def permutate(pob):
    print("Permutating {}...".format(pob))
    per = list(itertools.permutations(pob))
    for i in range(len(per)):
        print(per[i])


permutate(original)