Код:
output_list = []
for i in range(100, 1000):
if i % 7 == 0 and sum(list(map(int, str(i % 7 == 0:
output_list.append(i)
print(output_list)
Код:
output_list = []
for i in range(100, 1000):
if i % 7 == 0 and sum(list(map(int, str(i % 7 == 0:
output_list.append(i)
print(output_list)