Source Code:
(back to article)
import itertools my_list = [1, 2, 3] result = list(itertools.permutations(my_list)) print(result)
Result:
Report an issue