Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Even the Last by sebastian009
def checkio(array):
result = 0
if len(array)>0:
for i in range(0, len(array), 2):
result += array[i] # result = result + array[i]
result = result*array[-1]
return result
else:
return result
Oct. 16, 2016