Reduce function with add : Reduce : Buildin Function PYTHON examples


PYTHON examples » Buildin Function » Reduce »

 

Reduce function with add


Reduce function with add

import operator
print reduce(operator.add, [246])      function-based +

print reduce((lambda x, y: x + y)[246])




           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Buildin Function
» Reduce