Excuse me, the following python The code is plus the last line print() What is the role of
a=int(input())for i in range(a): b=list(map(int,input().split())) e=[] f=[] d=b[0] for i in b: if i<b[0]: e.insert(0,i) elif i>b[0]: f.append(-1,i) e.append(d) aa=e+f for i in aa: print(i,end=" ") print()
The role is to wrap