import random
tup = (random.randint(-100, 100) for _ in range(50))
s = 0
for num in tup:
if (num % 7 == 0) and (num % 11 != 0):
s += num
print(s)
def masgen(n):
mlist = [random.randint(-100, 100) for i in range(50)]
print(*mlist)
res = [i for i in mlist if i % 7 == 0 and i % 11 != 0]
print(sum(res))
if __name__ == '__main__':
masgen(n=50)
import random
tup = (random.randint(-100, 100) for _ in range(50))
s = 0
for num in tup:
if (num % 7 == 0) and (num % 11 != 0):
s += num
print(s)
import random
def masgen(n):
mlist = [random.randint(-100, 100) for i in range(50)]
print(*mlist)
res = [i for i in mlist if i % 7 == 0 and i % 11 != 0]
print(sum(res))
if __name__ == '__main__':
masgen(n=50)