We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- Merge the Tools!
- Discussions
Merge the Tools!
Merge the Tools!
Sort by
recency
|
2653 Discussions
|
Please Login in order to post a comment
def merge_the_tools(string, k): for d in range(0,len(string),k): var = string[d: d+k] character ="".join(dict.fromkeys(var)) print(character)
if name == 'main': string, k = input(), int(input()) merge_the_tools(string, k)
Hope it helps:
A simple Core Python code with descriptions (as comments), and without using any inbuilt function or module:
` def merge_the_tools(string, k):
if name == 'main': string, k = input(), int(input()) merge_the_tools(string, k) `