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

 

david.white@denison.edu cs112fall2015 > countOdds
prev  |  next  |  chance

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


countOdds([1, 1, 1, 1, 1, 1, 1]) → 7
countOdds([2, 2, 2, 2, 2, 2, 2]) → 0
countOdds([1, 2, 1, 3, 4, 5, 2]) → 4

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

def countOdds(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