Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by wrak
def checkio(data):
s=data
print(s)
if len(s)== 1:
return s[0]
else:
a=s[0]
s.pop(0)
return checkio(s[:])+a
Oct. 25, 2017