Permutations of a list Please write a program which prints all permutations of a list. permutations( [1,2,3] ) # [[1,2,3,],[1,3,2],[2,1,3],[2,3,1],[3,2,1],[3,1,2]]