Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# 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
You can’t perform that action at this time.