6 lines
105 B
Python
6 lines
105 B
Python
from functools import reduce
|
|
|
|
numbers = [1, 2, 3, 4, 5]
|
|
|
|
r = reduce(lambda x, y: x + y, numbers)
|
|
print(r) |