import math
def pairs(n):
olist=[]
sr=int(math.sqrt(n))
for i in range(sr+1):
l=[]
for j in range(i,sr+1):
if (ii)+(jj)==n:
l.append(i)
l.append(j)
olist.append(tuple(l))
for i in olist:
print(i,end='')
n=int(input())
print("__________")
list=[]
for i in range(n):
n=int(input())
list.append(n)
for i in list:
pairs(i)
print("\r")
i am not able to get rid of space betwwen the “,” and the next number in the tuple. please help