Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
readable solution in Clear category for Even the Last by shunsk2017
def checkio(array):
if not array:
return 0
mysum = 0
for i in range(0,len(array),2):
mysum += array[i]
return mysum * array[-1]
Sept. 27, 2017