def checkio(array): total = 0 if array != []: for i in range(len(array)): if i % 2 == 0: total += array[i] else: continue total *= array[-1] return(total) else: return(0)
22