2

We can read the Zen of Python by import this, so I look into the package and found that the actual text is not written as it is but as:

Ornhgvshy vf orggre guna htyl.
Rkcyvpvg vf orggre guna vzcyvpvg.
Fvzcyr vf orggre guna pbzcyrk.
Pbzcyrk vf orggre guna pbzcyvpngrq.

then use a dictionary:

d = {}
for c in (65, 97):
    for i in range(26):
        d[chr(i+c)] = chr((i+13) % 26 + c)

to covert the characters, is there any specific reason behind that or it's just for fun?

0 Answers0