Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple one-liner solution in Clear category for Even the Last by Goodester
def checkio(array):
"""
sums even-indexes elements and multiply at the last
"""
return sum(array[::2]) * array[-1] if array else 0
Dec. 10, 2019
Comments: