for i in range(9):
for j in range(9):
for k in range(9):
if (i + j + k == 15):
print(f'{i}{j}{k}')
Объяснение:
for i in range(100,999+1):
if sum(list(map(int, str(i == 15:
print(i)
for i in range(9):
for j in range(9):
for k in range(9):
if (i + j + k == 15):
print(f'{i}{j}{k}')
Объяснение:
for i in range(100,999+1):
if sum(list(map(int, str(i == 15:
print(i)