import random
a = [0]*100
s = 0
for i in range(len(a)):
a[i] = random.randint(100, 200)
if a[i] % 10 == 2:
s += a[i]
print(a)
print('sum =', s)
import random
a = [0]*100
s = 0
for i in range(len(a)):
a[i] = random.randint(100, 200)
if a[i] % 10 == 2:
s += a[i]
print(a)
print('sum =', s)
import random