You are viewing a single comment's thread. Return to all comments →
Why does it work? I thought that a set doesn't keep the order of the elements.
for i in range(0, len(string), k): print(''.join(list(set(string[i : i + k]))))
Seems like cookies are disabled on this browser, please enable them to open this website
Merge the Tools!
You are viewing a single comment's thread. Return to all comments →
Why does it work? I thought that a set doesn't keep the order of the elements.
for i in range(0, len(string), k): print(''.join(list(set(string[i : i + k]))))