Created
January 17, 2018 23:41
-
-
Save ysnerdem/ed7b49c0a3fc6764fc231af92f842afb 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
from functools import reduce | |
even = list(filter(lambda x: x % 2 == 0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])) | |
print(reduce(lambda x, y: x + y, even)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment