0

Say we start with:

x = list(range(10))

I'd like to process x to get a list of running sums like:

[0, 1, 3, 6, 10, 15, 21, 28, 36, 45]
John Kugelman
  • 349,597
  • 67
  • 533
  • 578
user1172468
  • 5,306
  • 6
  • 35
  • 62

0 Answers0