Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Slice solution in Clear category for Even the Last by bryukh
def checkio(array):
"""
The simple slice and comprehension.
"""
return sum(el for el in array[::2]) * array[-1] if array else 0
Feb. 19, 2014
Comments: