Skip to content

Commit a155cd8

Browse files
merge added
1 parent 43d015e commit a155cd8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Strings/Merge the Tools!/Solution.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)