Why my test cases are not being passed #Pythagorean Challenge

try:
a=0
b=0
A=9
t=[]
#r=[]
m=int(input())
for i in range (0,m):
r=int(input())
t.appendĀ®
#t= input()
#size =
for i in range (0,m):
if t[i]<=1000:
for a in range(0,t[i]+1):
for b in range(0,a+1):
if (a2 + b2) == t[i]:
print("(",b,",",a,")",sep="",end=" ")

print("\t")

print(sep="\t")

        print(end="\n")

except EOFError:
pass

Hey @Tushar2507, we have provided the editorial to leaderboard challenges, you need to refer to that in case you are unable to solved the problem. Its the only ethical way out. Editorial will resolve your doubts.

Happy Learning :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.