Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
enumerate solution in Clear category for Even the Last by mlahor
def checkio(array):
if not len(array):
return 0
return sum([x for i,x in enumerate(array) if not i%2])*array[-1]
April 3, 2021
Comments: