Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # itertools_permutations.py
- import itertools
- for p in itertools.permutations([1, 2, 3, 4]):
- print ' '.join(str(x) for x in p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement