Kindly show me a better way to do it

superpollo utente at esempio.net
Sat May 8 17:10:43 EDT 2010


Oltmans ha scritto:
> On May 9, 1:53 am, superpollo <ute... at esempio.net> wrote:
> 
>> add = lambda a,b: a+b
>> for i in reduce(add,a):
>>      print i
> 
> This is very neat. Thank you. Sounds like magic to me. Can you please
> explain how does that work? Many thanks again.
> 

here:

http://tinyurl.com/3xpdddd

and here:

http://tinyurl.com/39kdge5

bye



More information about the Python-list mailing list