import permutations from itertools code example Example: import permutations from itertools import permutations