I've put in the code below, but keep getting an error, not sure what I'm doing wrong?
def checkio(array):
if len(array) < 0:
return 0
else:
x = 0
for i in array[::2]:
return ((x += array[i]) * array[-1])
Created at: 2018/12/05 22:07; Updated at: 2018/12/06 18:47