Merge the Tools!

  • + 1 comment

    Hope it helps:

    def merge_the_tools(string, k):
        # your code goes here
        pos = 0
        output = ''
        for x in string:
            if pos == k:
                print(output)
                pos = 0
                output = ''
            if x not in output:
                output += x
            pos += 1
        print(output)