list comprehension with an accumulator in range of 10,list(accumulate(list(range(10))))