167k views
0 votes
Write a python function that on input takes a list l of integers and returns the count of how many of the integers in the list are even.

User Orom
by
7.4k points

1 Answer

5 votes
def countEvenIntegers(integerList): counter = 0 for item in integerList: if (item%2 = 0): counter += 1 return counter
User Stikkos
by
7.5k points