Merge the Tools!

  • + 0 comments

    another one liner solution (python 3.7+)

        print( *[ "".join( list( dict.fromkeys(string[i: i+k]) ) ) for i in range(0, len(string), k)], sep="\n")