Python
from random import randint
x=[randint(-10,10) for i in range(10)]
print(x)
print(sum(i for i in x if i%2==0))
Python
from random import randint
x=[randint(-10,10) for i in range(10)]
print(x)
print(sum(i for i in x if i%2==0))