Multiples of 3
You are given
The first line of input is an integer
N. The next N lines each contain an integer as input.
N = int(input()) data = [] for i in range(N): data.append(int(input())) for i in data: if i % 3 == 0: print(i)