Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Using Python Permutations function on a String with extra parameter

from itertools import permutations 
string="SOFT"
a=permutations(string,2) 
for i in list(a): 
   # join all the letters of the list to make a string 
   print("".join(i))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Using #Python #Permutations #function #String #extra #parameter
ADD COMMENT
Topic
Name
2+6 =