Код:
arr = []
for i in range(10):
arr.append(int(input()))
sum = 0
counter = 0
for i in arr:
if i % 2 == 0:
sum += i
counter += 1
print("Среднее:", sum / counter)
Код:
arr = []
for i in range(10):
arr.append(int(input()))
sum = 0
counter = 0
for i in arr:
if i % 2 == 0:
sum += i
counter += 1
print("Среднее:", sum / counter)