factor.py 245 B

123456789
  1. for i in range(10, 100):
  2. if i % 10 == 0:
  3. continue
  4. row = []
  5. for j in range(2, 10):
  6. if str(i * j)[-2] == '0':
  7. row.append(f'{i} * {j} = {i * j}')
  8. if len(row) > 0:
  9. print(f'{i}: ' + ', '.join(row))