Merge the Tools!

  • + 0 comments

    def merge_the_tools(string, k): li=[] for i in range(0,len(string),k): temp="" for j in range(k): temp=temp+string[i+j] li.append(temp) dup=[] for i in li: temp="" for j in i: if j not in temp: temp=temp+j dup.append(temp) for i in dup: print(i)