Light Mode
Dark Mode
even-last

Hi there,

I've noticed that even-last exercise doesn't work well with array slicing. Following code should work but last check throws an error:

def checkio(array): a = sum(array[::2]) b = len(array) c = array[b-1] return a*c

  • even-last
Created: Sept. 24, 2016, 1:25 p.m.
Updated: Sept. 24, 2016, 4:01 p.m.
0
4
User avatar
electromecca