Guest User

Untitled

a guest
Nov 12th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import string
  2. 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 '')))
  3. print(f('Hello world! My name is Ian')) # 'olleH dlrow! yM eman si naI.'
Add Comment
Please, Sign In to add comment