Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Even the last solution in Clear category for Even the Last by W.Zalicki
def checkio(array):
x = 0;
for i in range(len(array)):
if i % 2 ==0:
x+=array[i]
if x != 0:
return x * array[len(array)-1]
else:
return 0
Oct. 15, 2017