Py Chall-1




A ceaser cipher translator


Ok in this function u have to use maketrans module from String module

import string intab=string.ascii_lowercase #intab = "abcdefghijklmnopqrstuvwxyz" outab=string.ascii_lowercase[2:]+string.ascii_lowercase[:2] #outtab = "cdefghijklmnopqrstuvwxyzab" trantab = string.maketrans(intab, outab) 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."; print str.translate(trantab) print "map".translate(trantab)