Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by LPK
calc = lambda x,i: x[i] + calc(x,i+1) if i < len(x) else 0
checkio = lambda x: calc(x,0)
April 15, 2016