Problem In "REVERSE THE NUMBER" at beginner level

my code for reversing the number in python language is:

n=int(input())
for i in range(n):
num=int(input())
k=[]
while num>=1:
k.append(num%10)
num=num//10
print(*k, sep=’’)

When I am submitting it, it shows wrong answer., but when I am verifying it on Pycharm IDE it is correct.

PS: There is no indentation issue.
Kindly help!!

Please format your code - the forum software has mangled it so it is no longer valid Python! :slight_smile: