programming-examples/python/Math/Generate all permutations of a list in Python.py

2 lines
66 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import itertools
print(list(itertools.permutations([1,2,3])))