You are viewing a single comment's thread. Return to all comments →
def merge_the_tools(string, k): n = len(string) // k aux = 0 var = '' for i in range(len(string)): if aux == k: aux = 0 var = set(list(var)) print(''.join(var)) var = '' aux += 1 var += string[i] if aux == k: var = set(list(var)) print(''.join(var))
Seems like cookies are disabled on this browser, please enable them to open this website
Merge the Tools!
You are viewing a single comment's thread. Return to all comments →