Skip to content

Instantly share code, notes, and snippets.

@sveinn-steinarsson
Last active April 9, 2020 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sveinn-steinarsson/5eed471193b0e5d50c4e5f1c9af1ceda to your computer and use it in GitHub Desktop.
Save sveinn-steinarsson/5eed471193b0e5d50c4e5f1c9af1ceda to your computer and use it in GitHub Desktop.
#!/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