解答例_3_3 2024.05.25 result = [] for i in range(1, 51): if (i % 3 == 0) and not (i % 2 == 0): result.append(i) result [3, 9, 15, 21, 27, 33, 39, 45]