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 serp90
def checkio(array: list) -> int:
"""
sums even-indexes elements and multiply at the last
"""
return 0 if not array else sum(array[0::2]) * array[-1]
March 11, 2021
Comments: