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))
from itertools import permutations
print(len(list(permutations([1,2,3,4],4))))