Advertisement
here2share

# itertools_permutations.py

May 29th, 2015
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. # itertools_permutations.py
  2.  
  3. import itertools
  4.  
  5. for p in itertools.permutations([1, 2, 3, 4]):
  6.     print ' '.join(str(x) for x in p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement