Skip to content

Instantly share code, notes, and snippets.

@KatUser
Created July 15, 2020 03:01
Show Gist options
  • Save KatUser/1e688443112a554f5bf18ca124c918a4 to your computer and use it in GitHub Desktop.
Save KatUser/1e688443112a554f5bf18ca124c918a4 to your computer and use it in GitHub Desktop.
Ceazer code
n = int(input())
s = input()
# [97 , 123]
for i in s:
if int(ord(i)-n) in range(97 , 123):
print(chr(int(ord(i)-n)), end = '')
else:
print(chr(int(ord(i) -n)+26), end = '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment