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 tomkun
def checkio(array):
"""
sums even-indexes elements and multiply at the last
"""
if not array:
return 0
return sum(array[::2])*array[-1]
Nov. 29, 2015
Comments: