You are viewing a single comment's thread. Return to all comments →
def merge_the_tools(string, k): for i in range(0, len(string), k): substring = string[i: i + k] unique_char = ""
for char in substring: if char not in unique_char: unique_char += char print(unique_char)
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Merge the Tools!
You are viewing a single comment's thread. Return to all comments →
def merge_the_tools(string, k): for i in range(0, len(string), k): substring = string[i: i + k] unique_char = ""