We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43d015e commit a155cd8Copy full SHA for a155cd8
Strings/Merge the Tools!/Solution.py
@@ -0,0 +1,11 @@
1
+from collections import OrderedDict
2
+
3
4
+def merge_the_tools(string, k):
5
+ for i in range(0, len(string), k):
6
+ print(''.join(OrderedDict.fromkeys(string[i:i + k])))
7
8
9
+if __name__ == '__main__':
10
+ string, k = input(), int(input())
11
+ merge_the_tools(string, k)
0 commit comments