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 Thaddeus_Cheung
def checkio(array):
if array:
return sum(array[::2]) * array[-1]
return 0
March 10, 2020