def checkio(array): total =0 if len(array) >0: for i in array[::2]: total +=i return total * array[-1] else: return 0
1
2
9