Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Groupby solution in Clear category for Sum Consecutives by swagg010164
from itertools import groupby
def sum_consecutives(a):
return [sum(list(g)) for k, g in groupby(a)]
July 11, 2019