Und das habe ich in der Funktion geschrieben: < /p>
Code: Select all
import textwrap
from collections import OrderedDict as od
def merge_the_tools(string, k):
# your code goes here
length = int(len(string)/k)
words = textwrap.wrap(string,length)
for i in words:
new_dict = od.fromkeys(i)
print("".join(new_dict))