Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python Itertools.Permutations()
- >>> print([x for x in itertools.permutations('1234')])
- >>> [('1', '2', '3', '4'), ('1', '2', '4', '3'), ('1', '3', '2', '4') ... ]
- >>> ['1234', '1243', '1324' ... ]
- list(map("".join, itertools.permutations('1234')))
Add Comment
Please, Sign In to add comment