simplify
[python.git] / Lib / this.py
blob37754b785ab17820732e8ce0b0f0c543ef075b12
1 s = """Gur Mra bs Clguba, ol Gvz Crgref
3 Ornhgvshy vf orggre guna htyl.
4 Rkcyvpvg vf orggre guna vzcyvpvg.
5 Fvzcyr vf orggre guna pbzcyrk.
6 Pbzcyrk vf orggre guna pbzcyvpngrq.
7 Syng vf orggre guna arfgrq.
8 Fcnefr vf orggre guna qrafr.
9 Ernqnovyvgl pbhagf.
10 Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf.
11 Nygubhtu cenpgvpnyvgl orngf chevgl.
12 Reebef fubhyq arire cnff fvyragyl.
13 Hayrff rkcyvpvgyl fvyraprq.
14 Va gur snpr bs nzovthvgl, ershfr gur grzcgngvba gb thrff.
15 Gurer fubhyq or bar-- naq cersrenoyl bayl bar --boivbhf jnl gb qb vg.
16 Nygubhtu gung jnl znl abg or boivbhf ng svefg hayrff lbh'er Qhgpu.
17 Abj vf orggre guna arire.
18 Nygubhtu arire vf bsgra orggre guna *evtug* abj.
19 Vs gur vzcyrzragngvba vf uneq gb rkcynva, vg'f n onq vqrn.
20 Vs gur vzcyrzragngvba vf rnfl gb rkcynva, vg znl or n tbbq vqrn.
21 Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!"""
23 d = {}
24 for c in (65, 97):
25 for i in range(26):
26 d[chr(i+c)] = chr((i+13) % 26 + c)
28 print "".join([d.get(c, c) for c in s])