Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by tomasz.pucka
def fun(data, i):
if(i==0): return data[i]
else: return fun(data, i-1)+data[i]
def checkio(data):
i=len(data)-1
number=fun(data, i)
return number
Nov. 2, 2016