Thia ia my code:
num = int(input())
def check_num(number):
check = number+1
while True:
str_check = str(check)
if str_check == ''.join(str_check[::-1]):
return str_check
else:
check+=1
print(check_num(num))
Its giving correct input to all the test cases I input. Still its marked as wrong answer.