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

 

sumOdds


Write a function sumOdds(data) that returns the sum of only the odd integers in the list data. For example, sumOdds([1, 2, 3]) should return 4.


sumOdds([1, 2, 3, 4, 5]) → 9
sumOdds([1, 2, 3, 5, 5]) → 14
sumOdds([1, 1, 1, 1, 1]) → 5

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

def sumOdds(data):

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

Copyright Nick Parlante 2017 - privacy