Question regarding a recent article on informit.com
nav at adams.patriot.net
Thu Mar 20 21:14:04 CET 2003
Peter Hansen <peter at engcorp.com> 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 :^).
# sigmask.py || 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