list 22 count_even for num in list if num count_even print Even number

1
2
3
4
5
6
list = [1, 2, 3, 4, 5, 6, 6, 6,7, 8, 22]
count_even = 0
for num in list:
if num % 2 == 0:
count_even += 1
print("Even numbers in the list: ", count_even)