I’ve been trying this for over 10 minutes and it should work. But I keep getting a failure. Can someone explain to me why it’s not working? It would be much appreciated.
Here’s my code:
T = int(input())
for i in range(T):
N = 0
N = input()
print (N[::-1])