fork download
  1. from string import*
  2. u=ascii_uppercase
  3. l=u.lower()
  4. f=lambda x:translate(x,maketrans(u+l,u[::-1]+l[::-1]))
  5.  
  6. print f("abcdefghijklmnopqrstuvwxyz")
  7. print f("Programming Puzzles & Code Golf")
  8. print f("Hello World!")
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
zyxwvutsrqponmlkjihgfedcba
Kiltiznnrmt Kfaaovh & Xlwv Tlou
Svool Dliow!