A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/328662.html below:

A rather unpythonic way of doing things

A rather unpythonic way of doing things A rather unpythonic way of doing thingsFredrik Lundh fredrik at pythonware.com
Thu Sep 29 11:08:08 EDT 2005
"fraca7" wrote:

> print ''.join(map(lambda x: chr((((ord(x) - ord('a')) + 13) % 26) + ord('a')), 'yvfc'))

that's spelled

    print "yvfc".decode("rot-13")

or, if you prefer,

    print "yvfc".encode("rot-13")

, in contemporary python.

</F> 




More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4