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

 

timggc@ggc.edu > getNumOfEvens
prev  |  next  |  chance

Write a method that returns the number of even numbers in an list


getNumOfEvens([1, 21, 23, 12, 321, 12, 23, 23]) → 2
getNumOfEvens([2, 4, 3, 523, 34, 2, 3, 42, 2]) → 6
getNumOfEvens([2, 4, 5, 7, 9]) → 2

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

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

Copyright Nick Parlante 2017 - privacy