id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

evenIndicesOnly


Complete the function so that it returns the sum of the numbers at the even indices.


evenIndicesOnly([5, 8, 4, 7]) → 9
evenIndicesOnly([17, 5]) → 17
evenIndicesOnly([22, 40, 8, 10, 12, 12, 13]) → 55

...Save, Compile, Run (ctrl-enter)

def evenIndicesOnly( nums ):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 200

Copyright Nick Parlante 2017 - privacy