Light Mode
Dark Mode
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]
  • feedback
Created: March 9, 2015, 3:51 a.m.
Updated: March 10, 2015, 1:29 a.m.
0
11
User avatar
mazal