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

 

countTheOdds


Complete the function so that it returns the number of odd integers in the list. All of the integers will be positive.


countTheOdds([6, 9, 9, 20, 1]) → 3
countTheOdds([17, 5]) → 2
countTheOdds([22, 40, 8, 10, 12, 12, 13]) → 1

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

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