Merge the Tools!

  • + 0 comments

    import textwrap

    def merge_the_tools(string, k):

    list1=textwrap.wrap(string, k)
    
    for value in list1:
        str1=""
        for i in value:
            if i in str1:
                pass
            else:
                str1+=i
        print(str1)