Below Python program takes a number as a input from user and checks whether it is a palindrome or not.
Python program to check number is palindrome or not
number=int(input("Enter the number you want to check :"))
temp_num=number
rev_num=0
while(number>0):
rem=number%10
rev_num=rev_num*10+rem
number=number//10
if(temp_num==rev_num):
print("The Input number is a palindrome number!")
else:
print("The input number isn't a palindrome number!")
After execution of above code you will get the output like below:-
