Skip to content

Count Evens

Andrew Burke edited this page Apr 3, 2024 · 7 revisions
def count_evens(lst):
	count = 0
	for num in lst:
		if num % 2 == 0:
			count += 1
	return count
Clone this wiki locally