Merge the Tools!

  • + 0 comments
    count = len(string) // k
    
    for i in range(count):
        sub_s = ""
        for j in range(i*k,(i+1)*k):
            if string[j] not in sub_s:
                sub_s+=string[j]
                print(string[j],end="")
        print()