• Even last, code not passing

Question related to mission Even the Last

 

def checkio(array): """ sums even-indexes elements and multiply at the last """ x = 0 for i in array[::2]: x += i return x * array[-1]