Merge the Tools!

  • + 0 comments
    def merge_the_tools(string, k):
        text = ""
        for i in string:
            text += "".join(i)
            if len(text) == k:
                for i in range(len(text)):
                    s = "".join(sorted(set(text), key=text.index))
                print(s)
                text = ""