<gh_stars>1-10
# Program 34 : Python program to count Even and Odd numbers in a List

# list of numbers
list1 = [19, 222, 43, 4, 86, 3, 1]

even_count, odd_count = 0, 0

# iterating each number in list
for num in list1:
	
	# checking condition
	if num % 2 == 0:
		even_count += 1

	else:
		odd_count += 1
		
print("Even numbers in the list: ", even_count)
print("Odd numbers in the list: ", odd_count)

# Program 34 : Python program to count Even and Odd numbers in a List

# list of numbers
list1 = [19, 222, 43, 4, 86, 3, 1]

even_count, odd_count = 0, 0

# iterating each number in list
for num in list1:
	
	# checking condition
	if num % 2 == 0:
		even_count += 1

	else:
		odd_count += 1
		
print("Even numbers in the list: ", even_count)
print("Odd numbers in the list: ", odd_count)
# Program 34 : Python program to count Even and Odd numbers in a List # list of numbers # iterating each number in list # checking condition