[ create a new paste ] login | about

Link: http://codepad.org/npr7BfQ6    [ raw code | output | fork ]

ajiyoshi - Python, pasted on Apr 15:
1
2
3
4
# -*- coding: utf-8 -*-
#自分で書く必要はない
print reduce(lambda x, y: x + y, range(1, 11))
print reduce(lambda x, y: x + y, ["a", "b", "c"])


Output:
1
2
55
abc


Create a new paste based on this one


Comments: