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 vashrepetitor05
def checkio(array):
x = sum(array[0::2])
if array:
x *= array[-1]
return x
Oct. 12, 2019