programming-examples/python/Math/Generate all permutations of a list in Python.py
2019-11-15 12:59:38 +01:00

2 lines
66 B
Python

import itertools
print(list(itertools.permutations([1,2,3])))