permutation of a number python code example
Example 1: all permutations python
import itertools
print(list(itertools.permutations([1,2,3])))
Example 2: python create a program that runs through all possible combinations
from itertools import combinations
lst = ["a" ,"b", "c"]
lengthOfStrings = 3
for i in combinations(lst, lengthOfStrings):
print(i)