summaryrefslogtreecommitdiffstats
path: root/Lib/this.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-02-08 20:13:47 (GMT)
committerFred Drake <fdrake@acm.org>2002-02-08 20:13:47 (GMT)
commit63cd9bf4887cd4603ead4db29c772fa370e68a25 (patch)
tree2508052ebfa2d273a6d9cc7e3652e4f7637bfd49 /Lib/this.py
parent65f50156cd26e222aa659c124a5a7f236444ebfb (diff)
downloadcpython-63cd9bf4887cd4603ead4db29c772fa370e68a25.zip
cpython-63cd9bf4887cd4603ead4db29c772fa370e68a25.tar.gz
cpython-63cd9bf4887cd4603ead4db29c772fa370e68a25.tar.bz2
Python 10 was a success, commemorate it\!
Diffstat (limited to 'Lib/this.py')
-rw-r--r--Lib/this.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/Lib/this.py b/Lib/this.py
new file mode 100644
index 0000000..389be34
--- /dev/null
+++ b/Lib/this.py
@@ -0,0 +1,28 @@
+s = """Gur Mra bs Clguba, ol Gvz Crgref
+
+Ornhgvshy vf orggre guna htyl.
+Rkcyvpvg vf orggre guna vzcyvpvg.
+Fvzcyr vf orggre guna pbzcyrk.
+Pbzcyrk vf orggre guna pbzcyvpngrq.
+Syng vf orggre guna arfgrq.
+Fcnefr vf orggre guna qrafr.
+Ernqnovyvgl pbhagf.
+Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf.
+Nygubhtu cenpgvpnyvgl orngf chevgl.
+Reebef fubhyq arire cnff fvyragyl.
+Hayrff rkcyvpvgyl fvyraprq.
+Va gur snpr bs nzovthvgl, ershfr gur grzcgngvba gb thrff.
+Gurer fubhyq or bar-- naq cersrenoyl bayl bar --boivbhf jnl gb qb vg.
+Nygubhtu gung jnl znl abg or boivbhf ng svefg hayrff lbh'er Qhgpu.
+Abj vf orggre guna arire.
+Nygubhtu arire vf bsgra orggre guna *evtug* abj.
+Vs gur vzcyrzragngvba vf uneq gb rkcynva, vg'f n onq vqrn.
+Vs gur vzcyrzragngvba vf rnfl gb rkcynva, vg znl or n tbbq vqrn.
+Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!"""
+
+d = {}
+for c in (65, 97):
+ for i in range(26):
+ d[chr(i+c)] = chr((i+13) % 26 + c)
+
+print "".join([d.get(c, c) for c in s])