Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by PythOff
def policz(data, wynik):
if (len(data) > 0):
wynik += data[0]
return policz(data[1:], wynik)
else:
return wynik
def checkio(data):
result = 0
result = policz(data, result)
return result
Oct. 27, 2016