Last active
April 9, 2020 11:25
-
-
Save sveinn-steinarsson/5eed471193b0e5d50c4e5f1c9af1ceda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Sample solution for the puzzle in the job advertisement from Já Gallup | |
Cipher: ahsr pz jolhw. zovd tl aol jvkl − spubz avychskz | |
Hint: j->c | |
""" | |
print(''.join([(chr((ord(c) - (97 + ord('j') - ord('c'))) % 26 + 97) if c.isalpha() else c) for c in 'ahsr pz jolhw. zovd tl aol jvkl − spubz avychskz'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment