I\'m not able to understand the following code segment:
>>> lot = ((1, 2), (3, 4), (5,)) >>> reduce(lambda t1, t2: t1 + t2, lot) (1, 2, 3,
let's trace the reduce
result = (1,2) + (3,4) result = result + (5, )
result = (1,2) + (3,4)
result = result + (5, )
Notice that your reduction concatenates tuples.