A rather unpythonic way of doing things

Richie Hindle richie at entrian.com
Thu Sep 29 17:05:03 CEST 2005


[Peter]
> http://www.pick.ucam.org/~ptc24/yvfc.html

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

Ah!  Or more easily, Edit / Apply ROT13.  Thanks!

-- 
Richie Hindle
richie at entrian.com



More information about the Python-list mailing list