itertools.permutations()

  • + 0 comments

    ****from itertools import permutations Q,J=input().split() d=sorted(permutations(Q,int(J)))

    ***for w in d: print("".join(w))*