Created
May 20, 2016 17:33
-
-
Save chuck0523/dae62cf7c809d722c2ff6e9c1a0c1d6a 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
# coding: UTF-8 | |
from functools import reduce | |
print(reduce(lambda result, x: result + x, range(1, 5))) # 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment