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 virzen
def checkio(array):
"""
sums even-indexes elements and multiply at the last
"""
if (len(array) < 1):
return 0
evenIndexes = [el for index, el in enumerate(array) if index % 2 == 0]
return sum(evenIndexes) * array[-1]
Nov. 12, 2016