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 tokiojapan55
def checkio(array):
result = 0
for n in array[::2]:
result += n
if len(array) > 0:
result *= array[-1]
return result
June 22, 2020
Comments: