You are viewing a single comment's thread. Return to all comments →
from itertools import permutations line = input().split() string = line[0].upper() int_val = int(line[1]) X = sorted(permutations(string, int_val)) for i in X: print("".join(i))``
Seems like cookies are disabled on this browser, please enable them to open this website
itertools.permutations()
You are viewing a single comment's thread. Return to all comments →