Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Restricted Sum by marcin-krol
def checkio(data):
return 0 if len(data)==0 else data[0]+checkio(data[1:])
if __name__ == '__main__':
checkio([1, 2, 3]) == 6
checkio([2, 2, 2, 2, 2, 2]) == 12
Dec. 19, 2015