Question regarding a recent article on

Nick Vargish nav at
Thu Mar 20 21:14:04 CET 2003

Peter Hansen <peter at> writes:

> Doesn't reduce return a non-list (or at least, isn't it the case that 
> it doesn't necessarily return a list the way map and filter do)?

Yep (see .sig :^).


#  ||  version 0.2  ||  2003-01-07  ||  Feed this to your Python.
print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')

More information about the Python-list mailing list