Tells you what is Zen of Python

Actually this is enough to print the Truth:

import this

Loop version from

result = []
for c in this.s: ## fixed tonyjv
   if c in this.d:
print "".join(result)
import this
whatiszenofpython= "".join([c in this.d and this.d[c] or c for c in this.s])

Did my own version (generator and string concatenation):

import this ## prints zenofpython
print '-'*70
whatiszenofpython = "".join(this.d[c] if c in this.d else c for c in this.s)
zen = ''
for c in this.s:
    zen += this.d[c] if c in this.d else c
print zen

already knew this


from __future__ import braces

The right way is
>>> print ''.join(this.d.get(c,c) for c in this.s)
as done in file.

It is same as mine.. But I produce default value with logical operations or if..else instead of using default parameter of get. It is handy to remember the get alternative, of course.