def DeslocaASCII(texto):
novoTexto = ''
for letra in texto:
numero = ord(letra)
novoTexto += chr(numero + (-23 if numero > 87 else 3))
return novoTexto
print(DeslocaASCII('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
#https://pt.stackoverflow.com/q/253730/101
ZGVmIERlc2xvY2FBU0NJSSh0ZXh0byk6CiAgICBub3ZvVGV4dG8gPSAnJwogICAgZm9yIGxldHJhIGluIHRleHRvOgogICAgICAgIG51bWVybyA9IG9yZChsZXRyYSkKICAgICAgICBub3ZvVGV4dG8gKz0gY2hyKG51bWVybyArICgtMjMgaWYgbnVtZXJvID4gODcgZWxzZSAzKSkKICAgIHJldHVybiBub3ZvVGV4dG8KICAgIApwcmludChEZXNsb2NhQVNDSUkoJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaJykpCgojaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzI1MzczMC8xMDE=