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