Skip to content

Instantly share code, notes, and snippets.

@xhinking
Created March 21, 2013 17:29
Show Gist options
  • Save xhinking/5214908 to your computer and use it in GitHub Desktop.
Save xhinking/5214908 to your computer and use it in GitHub Desktop.
Python Challenge Level 1 Code
str = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
def Crack(c):
if c != '(' and c != ')' and c != '.' and c != '\'' and c != ' ':
c = ord(c) + 2
if c >= 123:
c = 97 + c - 123
return chr(c)
else:
return c
str2 = map(Crack, str)
print ''.join(str2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment