Pythagorean's Challenge

i’m unable to delete the spaces between each element of the tuple,otherwise my output is same as the required output!please help!!

Can you please share the code ?

from math import floor,sqrt
n = int(input())
for i in range(n):
x = int(input())
for i in range(0,floor(sqrt(x))+1):
a = pow(i,2)
for j in range(0,floor(sqrt(x))+1):
b = pow(j,2)
if a+b==x and a<=b:
X = floor(sqrt(a))
Y = floor(sqrt(b))
s = (X,Y)
print(s,end=" ")
else:
continue
print()

Save the code at Coding Blocks IDE and share the link. This is an unindented code.

Solution
I just coded the output in a string instead of using tuple, since using tuple results in space after “,”
and the output required no spaces within the tuple.