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]