fork download
  1. def f(s):
  2. g=lambda(a,b):lambda c:a<c.lower()<b
  3. for f in g('`n'),g('m{'):
  4. t='';u=filter(f,s)[-1:]
  5. for c in s:
  6. if f(c):c,u=u,c
  7. t=c+t
  8. s=t
  9. print s
  10.  
  11. f('Hello_World')
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
dHelW_oroll