Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

zen of python source code

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])
Comment

PREVIOUS NEXT
Code Example
Python :: iterating over the two ranges simultaneously and saving it in database 
Python :: legend matplotlib twinx 
Python :: python fibonacci while loop 
Python :: fibonacci sequence script python 
Python :: python program to check fibonacci number using functions 
Python :: multiprocessing module in python 
Python :: Parallel run of a function with multiple arguments partial map pool 
Python :: django on_delete rules 
Python :: Modifiying line plots 
Python :: hello kitt 
Python :: copy element dynamo revit 
Python :: palindrome without using string function in python 
Python :: matplotlib draw line between subplots 
Python :: pandas corr get couple value 
Python :: mechanize python #4 
Python :: ~coinbase api 
Python :: Notice there is a bug when using astimezone() on utc time. This gives an incorrect result: 
Python :: reolace text python 
Python :: calculated fields in models 
Python :: .format() 
Python :: # difference between list 1 and list 2 
Python :: python deconstruct tuple 
Python :: unittest run one test 
Python :: fill missing values with dict 
Python :: Accessing element using negative indexing 
Python :: sorted string dict approach 
Python :: python how to do imports 
Python :: drop columns delta table 
Python :: python run docker interactively subprocess 
Python :: python terminal color 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =