Last active
April 25, 2020 15:56
-
-
Save Deep18-03/4844ec3cbf27a54e0f493d18726e504e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#map,filter,reduce | |
#reduce | |
import functools | |
lst=[1,2,4,54,5,6] | |
num=functools.reduce(lambda x,y:x+y,lst) | |
print(num) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment