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
|
2655 Discussions
|
Please Login in order to post a comment
Vanilla.
I am not getting the challenge as solved, even though it was accepted and passed all the tests, does anyone also has this problem?
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)