1 2 3 4
from operator import add print reduce(add, ('a', 'b', 'c', 'd')) print reduce(add, (1, 2, 3, 4, 5)) print reduce(add, ([1, 2,], [3, 4], [5]))
1 2 3
abcd 15 [1, 2, 3, 4, 5]