Second solution in Clear category for Restricted Sum by evilgoat
def checkio(x): return 0 if not x else x.pop() + checkio(x)
July 18, 2017