Write a Python program that asks the user to enter a number. Then check if the given number is a palindrome or not. A number is called a palindrome if it reads the same forward and backward. For example, 121 reads the same from both sides so it is a palindrome. But 123 reversed is 321 which is different, so it is not a palindrome. If the number is a palindrome, print "Palindrome". If not, print "Not a Palindrome". The program must take the number as input from the user.
Examples
Example 1
Input
121
Output
Palindrome
Explanation 121 reversed is also 121 so it is a Palindrome
Example 2
Input
123
Output
Not a Palindrome
Explanation 123 reversed is 321 which is different so it is Not a Palindrome
Example 3
Input
0
Output
Palindrome
Explanation 0 reversed is also 0 so it is a Palindrome
Acceptance—
Accepted0
Submissions0
Auto-save
SavedLn 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
Palindrome
No results yet
Run your code to test it against the sample cases.