We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
def merge_the_tools(s, k):
split_len = k
lst = []
new_lst = []
for i in range(0, len(s), split_len):
lst.append(s[i: (i + split_len)])
for j in lst:
for l in j:
if l not in new_lst:
new_lst.append(l)
print("".join(new_lst))
new_lst = []
Cookie support is required to access HackerRank
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 →
Beginner code though,