Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- f = lambda s: (lambda f: ' '.join(f(w) for w in s.split()))(lambda w: (lambda f: f(f, 0, 1))(lambda f, i, j: (([c for c in w if c in string.ascii_letters][-j] + f(f, i+1, j+1) if w[i] in string.ascii_letters else w[i] + f(f, i + 1, j)) if i < len(w) else '')))
- print(f('Hello world! My name is Ian')) # 'olleH dlrow! yM eman si naI.'
Add Comment
Please, Sign In to add comment