Write a program which prints all permutations of [1,2,3]


Topic: Write a program which prints all permutations of [1,2,3]

Solution

import itertools
print(list(itertools.permutations([1, 2, 3])))



List all Python Programs