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 radekj
def checkio(array):
"""
sums even-indexes elements and multiply at the last
"""
if array:
return sum(array[::2]) * array[-1]
return 0
#These "asserts" using only for self-checking and not necessary for auto-testing
May 15, 2014
Comments: