Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
CTRL+V solution in Creative category for Restricted Sum by tomires
def checkio(data):
zum = i = 0 # gotta be careful with the naming
try: zum += data[i] # let's try adding the first number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding another number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # if it does, go to another number
try: zum += data[i] # let's try adding the last number
except: return zum # if it doesn't exist, gimme what you got
i += 1 # i am far too lazy to remove that bit
return zum # have we really got that far?!
April 29, 2014
Comments: