Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by hirom08
def checkio(data):
return data[0] + checkio(data[1:]) if data else 0
"""
which means...
answer = 0
if data:
answer = data[0] + checkio(data[1:])
else:
0
return answer
"""
Feb. 13, 2020