Computer Science, asked by 19vs1010549, 1 day ago

Create a python list containing even integer elements from 3 to 11 and print the
count of the even numbers.

Answers

Answered by samarthkrv
4

Answer:

list = []

ec = 0

print("Even numbers in the list")

for i in range(3,11):

   if(i%2 == 0):

       list.append(i)

for i in range(len(list)):

   print(list[i])

Explanation:

Answered by dhruvkumargupta2009
0
Input: list1 = [2, 7, 5, 64, 14]
Output: Even = 3, odd = 2

Input: list2 = [12, 14, 95, 3]
Output: Even = 2, odd = 2
Similar questions