Python:
import randint from random
a=[]
count=0
for i in range(0,10):
x=randint(1, 1000000)
a.append(x)
if x%2==0:
count+=x
print(count)
print(a)
Python:
import randint from random
a=[]
count=0
for i in range(0,10):
x=randint(1, 1000000)
a.append(x)
if x%2==0:
count+=x
print(count)
print(a)