Light Mode
Dark Mode
why this is not correct?
def checkio(array):
  total =0
  if len(array) >0:
    for i in array[::2]:
       total +=i
    return total * array[-1]
  else:
    return 0
Created: Feb. 26, 2020, 3:51 p.m.
Updated: March 2, 2020, 6:32 p.m.
0
9
User avatar
cklau