Skip to content

Instantly share code, notes, and snippets.

@aglassman
Created October 3, 2013 18:48
Show Gist options
  • Save aglassman/6814965 to your computer and use it in GitHub Desktop.
Save aglassman/6814965 to your computer and use it in GitHub Desktop.
Python Challenge #1: A not as cool way.
s="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."
o=""
for x in s:
if ord(x)>=ord('a') and ord(x)<=ord('z'):
o+=chr((ord(x)+2-ord('a'))%26+ord('a'))
else:
o+=x
print o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment