List comprehension with an accumulator,list(accumulate(list(range(10))))