permutation collections python code example Example: import permutations from itertools import permutations