def checkio(array):
nlista=[]
while len(array)>0:
for i in range(len(array)):
if i % 2 == 0:
nlista.append(array[i])
sumarray=0
for k in nlista:
sumarray+=k
sumarray= sumarray * (array[len(array)-1])
return sumarray
return 0
Created at: 2019/07/06 15:09; Updated at: 2019/07/06 15:19
The question is resolved.