Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by Lachesis_132296
def adding(data, s):
if len(data) == 0:
return s
if len(data) == 1:
return s + data[0]
if len(data) > 1:
e = data.pop(0)
s += e
return adding(data, s)
def checkio(data):
return adding(data, 0)
Nov. 19, 2016