actually, minor fix: MTD wrote: > Try this: > > def k2k1(string1, string2): > for c in string1: > string2 = string2.replace(c,"",1) > > if len(string2) == 1: > string1 += string2 else: string1 = ""
> > return string1 > > print k2k1("abcd", "ebcd") -- http://mail.python.org/mailman/listinfo/python-list