You are viewing a single comment's thread. Return to all comments →
import textwrap from collections import OrderedDict def merge_the_tools(s, k): chunks = textwrap.wrap(s, k) for c in chunks: print("".join(OrderedDict.fromkeys(c))) def main(): s, k = input(), int(input()) merge_the_tools(s, k) if __name__ == "__main__": main()
Seems like cookies are disabled on this browser, please enable them to open this website
Merge the Tools!
You are viewing a single comment's thread. Return to all comments →