Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
list_comprehension solution in Clear category for Even the Last by Totheheart
def checkio(array):
return sum(array[i] for i in range(len(array)) if not i % 2) * array[-1] if array else 0
July 26, 2019