• cannot compile

 

I would like to give some feedback about ...

From: https://www.checkio.org/mission/even-last/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0

the code bellow will not compile on checkio website, however it runs fine on my desktop

def checkio(array): """ sums even-indexes elements and multiply at the last """ sum = 0 i=0 while i <= len(array)-1: sum = sum+array[i] i=i+2

return  sum * array[len(array)-1]