Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Glassman aglassman

View GitHub Profile
@aglassman
aglassman / pythonchallenge_1-2.py
Created Oct 3, 2013
Python Challenge #1: A not as cool way.
View pythonchallenge_1-2.py
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
@aglassman
aglassman / pythonchallenge_0.py
Created Sep 27, 2013
Python Challenge #0: My uber complicated solution to challenge 0.
@aglassman
aglassman / pythonchallenge_1.py
Last active Dec 24, 2015
Python Challenge #1: My polished soluiton.
View pythonchallenge_1.py
#testing revision 2
import string
l = string.lowercase
trans = string.maketrans(string.letters,l[2:]+l[:2])
string.translate(input,trans)
You can’t perform that action at this time.