human
How to generate all permutations of a list in Python
assistant
Here is some code to generate all permutations of a list `[1, 2, 3]`

itertools.permutations([1, 2, 3])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.