My issue
It’s not taking a loop giving other outputs. It’s taking only one input but not other outputs.
My code
# Update the program below to solve the problem
t = int(input())
for i in range(t):
X = int(input())
if X%3 == 0:
print(0)
elif (X+1)%3 == 0:
print(1)
else:
print(2)
Learning course: Python for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone