Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Even the Last by PawelBubak
def checkio(array):
wynik=0
result=0
if array:
n=array[-1]
for i in range(0,len(array),2):
wynik+=array[i]
result=wynik*n
return result
Oct. 21, 2016