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 PawlakBartosz43
def checkio(array):
if(len(array) == 0):
return 0
i = 0
sum = 0
for number in array:
if(i % 2 == 0):
sum += number
i += 1
sum = sum * array[len(array)-1]
return sum
Oct. 31, 2016