RosettaCodeData/Task/Permutations/Python/permutations.py

4 lines
83 B
Python
Raw Normal View History

2013-04-10 23:57:08 -07:00
import itertools
for values in itertools.permutations([1,2,3]):
print (values)