Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Random fact: If a horse has a red ribbon on its tail, it kicks. solution in Clear category for Restricted Sum by siebenschlaefer
def checkio(data):
"""Add the items of 'data' and return the result."""
if len(data) == 1:
return data[0]
half_length = len(data) // 2
return checkio(data[:half_length]) + checkio(data[half_length:])
Oct. 23, 2015