You are viewing a single comment's thread. Return to all comments →
def merge_the_tools(string, k): for d in range(0,len(string),k): var = string[d: d+k] character ="".join(dict.fromkeys(var)) print(character)
if name == 'main': string, k = input(), int(input()) merge_the_tools(string, k)
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 →
def merge_the_tools(string, k): for d in range(0,len(string),k): var = string[d: d+k] character ="".join(dict.fromkeys(var)) print(character)
if name == 'main': string, k = input(), int(input()) merge_the_tools(string, k)