You are viewing a single comment's thread. Return to all comments →
import textwrap
# your code goes here for x in textwrap.wrap(string, k): my_list = list(dict.fromkeys(x)) print( ''.join(my_list) )
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Merge the Tools!
You are viewing a single comment's thread. Return to all comments →
import textwrap