1number=int(input("Enter any number :"))
2#store a copy of this number
3temp=number
4#calculate reverse of this number
5reverse_num=0
6while(number>0):
7 #extract last digit of this number
8 digit=number%10
9 #append this digit in reveresed number
10 reverse_num=reverse_num*10+digit
11 #floor divide the number leave out the last digit from number
12 number=number//10
13#compare reverse to original number
14if(temp==reverse_num):
15 print("The number is palindrome!")
16else:
17 print("Not a palindrome!")