Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Short solution in Speedy category for Even the Last by genadiik
def checkio(array):
"""
sums even-indexes elements and multiply at the last
"""
if len(array) == 0:
return 0
return sum(array[0::2]) * array[-1]
May 31, 2019
Comments: