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