Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python all permutations of a string

>>> from itertools import permutations
>>> perms = [''.join(p) for p in permutations('stack')]
>>> perms
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #permutations #string
ADD COMMENT
Topic
Name
4+8 =