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
using function to find next palindrome
def nearest_palindrome(number): if number>0: i=1 while(number): n=number+i temp=n sum=0 while n>0: rem=n%10 sum=sum*10+rem n=n//10 if temp==sum: return temp #break else: sum=0 i=i+1 #continue number=12300 print(nearest_palindrome(number))