Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by Krzysztof.Sawarzynski
def all(data):
if len(data) > 1:
data[-2] += data[-1]
data.pop()
if len(data) > 1:
data = all(data)
return data
def checkio(data):
return all(data)[0]
Jan. 11, 2017