Merge the Tools!

  • + 0 comments

    m = '\n'.join( ''.join(dict.fromkeys(group)) for group in [group for group in batched(string, k)])

    return m