Created
March 21, 2013 17:29
-
-
Save xhinking/5214908 to your computer and use it in GitHub Desktop.
Python Challenge Level 1 Code
This file contains 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
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