Q:

Write a Python program to generate all permutations of a list in Python

0

Write a Python program to generate all permutations of a list in Python.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now