Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alpha = 'abcdefghijklmnopqrstuvwxyz'
- alpha1 = 'ABCDEFGHIJRLMNOPQRSTUVWXYZ'
- s = input()
- res = ''
- for c in s:
- if (c >= 'a') & (c <= 'z'):
- res += alpha[(alpha.index(c) - 13) % len(alpha)]
- elif (c >= 'A') & (c <= 'Z'):
- res += alpha1[(alpha1.index(c) - 13) % len(alpha1)]
- else:
- res += c
- print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement