The Problem is, we are given a number and we need to **write a python program to check whether the given number is palindrome or not**.

**Palindrome Number: **A number is said to be a palindrome if its reverse is equal to itself.

All we need to do is to first, find the reverse of the number and then compare it with the original number. If both are equal then the number is Palindrome else it is not.

## Python Program

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
print("Enter a Number \n") num = int(input()) rev = 0 #Copying the original number temp = num #Finding Reverse while temp > 0: rev = (rev*10) + (temp %10); temp = temp//10 #Comparing reverse with original number if rev == num : print("Palindrome \n") else: print("Not Palindrome") |