I am beginner in programming, So can you please tell me what\'s wrong with my code?
I want to print next palindrome number if the number entered by the user (n) is n
def next_palin_drome(n): while True: n+=1 if str(n) == str(n)[::-1]: return n n=12231 print(next_palin_drome(n))
output:12321