Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
List Slicing solution in Clear category for Even the Last by aussio
def checkio(array):
"""
Uses list slicing to get every other key.
"""
if array:
return sum(array[::2]) * array[-1]
return 0
March 3, 2015
Comments: