fork(1) download
  1. def rot13(word):
  2. return ''.join(chr(ord(c) + (13 if c.lower() < 'n' else -13)) for c in word)
  3.  
  4. print(rot13('hello'))
  5. print(rot13(rot13('hello')))
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
uryyb
hello