Light Mode
Dark Mode
Why not work for checkio ([])

def checkio(array): """ sums even-indexes elements and multiply at the last """ n=0 a=[] while n <= len(array)-1: v = array[n] a.append(v) n=n+2 return sum(a)*array[len(array)-1]

  • checkio ([])
  • Even the last
Created: July 30, 2015, 11:49 a.m.
Updated: Aug. 3, 2015, 10:39 a.m.
0
5
User avatar
MontiPython