Answers for "Using Python Permutations function on a String with extra parameter"

0

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))
Posted by: Guest on April-10-2022

Code answers related to "Using Python Permutations function on a String with extra parameter"

Python Answers by Framework

Browse Popular Code Answers by Language