Contact: aviboots(AT)netvision.net.il
41,445 questions
53,992 answers
573 users
from itertools import permutations s = "xyz" permutation = [''.join(e) for e in permutations(s)] for s in permutation: print(s) ''' run: xyz xzy yxz yzx zxy zyx '''