> Python function with list question?

Python function with list question?

Posted at: 2014-12-18 
def countEvenInts(L):

count = 0

for x in L:

if isinstance(x, int) and x > 0 and x % 2 == 0:

count += 1

return count

Write a function "countEvenInts" that takes in a list (which may be empty), and returns the number of even integers in that list. Note: the float value 14.0 and the string value "14" are not integers; -12 is not an even integer; do not consider 0 to be an even integer. The list may contain any of these atomic types: integers, floats, strings, Booleans, or None. Your function should skip past any values in the list that are not integers. Do not treat a non-integer as an error.