Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Enumerate + sum solution in Clear category for Even the Last by swagg010164
def checkio(a):
return sum([el for ind, el in enumerate(a) if ind % 2 == 0])*a[-1] if len(a) > 0 else 0
Nov. 8, 2019