Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Sum Consecutives by 9Teen90Three
from itertools import groupby
def sum_consecutives(lst):
return [sum(g) for k, g in groupby(lst)]
Nov. 17, 2021
Comments: