<filename>src/bioinformatics-stronghold/perm-enumerating-gene-orders.py<gh_stars>0
import itertools

def permutations(n):
    lst = [i for i in range(1, n+1)]
    return list(itertools.permutations(lst))

perms = permutations(7)

print(len(perms))

for p in perms:
    temp = []
    for i in p:
        temp.append(str(i))
    print(" ".join(temp))

<filename>src/bioinformatics-stronghold/perm-enumerating-gene-orders.py<gh_stars>0
import itertools

def permutations(n):
    lst = [i for i in range(1, n+1)]
    return list(itertools.permutations(lst))

perms = permutations(7)

print(len(perms))

for p in perms:
    temp = []
    for i in p:
        temp.append(str(i))
    print(" ".join(temp))
