You are viewing a single comment's thread. Return to all comments →
def morgan(a, b): a += 'z' b += 'z' for _ in range(len(a) + len(b) - 2): if a < b: yield a[0] a = a[1:] else: yield b[0] b = b[1:] def morganAndString(a, b): return ''.join(morgan(a, b))
Seems like cookies are disabled on this browser, please enable them to open this website
Morgan and a String
You are viewing a single comment's thread. Return to all comments →