On Thursday 16 November 2006 14:21, George-Cristian Bîrzan wrote:
> On Thursday 16 November 2006 14:20, George-Cristian Bîrzan wrote:
> > On Thursday 16 November 2006 13:36, Bogdan Botez wrote:
> > > Insist sa faci acel utilitar, ai intelege mai bine ce efort presupune
> > > atat realizarea cat si promovarea lui. Promit ca nu o sa protestez.
> Si asta e versiunea doi. Si, da, am pus bug-ul intentionat.

Major rewrite:

[EMAIL PROTECTED]:~$ cat rot13.py
#!/usr/bin/python

import sys

print ''.join(map(lambda x: x.isalpha() and chr((ord(x) - ord('a') + 13) % 26 + 
ord('a')) or x, sys.stdin.read().lower()))
[EMAIL PROTECTED]:~$


-- 
George-Cristian Bîrzan

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui