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]
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]