n=int(input()) for i in range(n): temp=input() tab=temp.split() tab.reverse() for j in tab: print(j,end=’ ') print() czemu to nie działa?