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 darasg2008
def checkio(array):
s=0
d=len(array)-1
if d==-1:
return 0
for i in range(0,d+1,2):
s=s+array[i]
s=s*array[len(array)-1]
return s
return 0
Nov. 3, 2016