TLE icon indicating copy to clipboard operation
TLE copied to clipboard

Move to Python 3.8

Open meooow25 opened this issue 5 years ago • 2 comments

It's walrus time!

meooow25 avatar Nov 01 '19 19:11 meooow25

total = 0
partial_sums = [total := total + v for v in values]

cheran-senthil avatar Nov 02 '19 15:11 cheran-senthil

partial_sums = list(itertools.accumulate(values))

meooow25 avatar Nov 02 '19 15:11 meooow25