Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Even the first solution in Clear category for Even the Last by dominieq
def checkio(array):
if len(array)>0:
last = array[len(array)-1]
sum = 0
for i in range(0,len(array),2):
sum = sum + array[i]
result = sum*last
return result
return 0
Nov. 13, 2016