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