Python Program to check given number is palindrome or not?
A palindrome number is a number that remains same when digits its are reversed. example for the palindrome number is 121. this number same as both sides then it called as palindrome. In this post we are going to learn given number is palindrome or not.
Input:
121
Output:
Palindrome
Explanation:
121 is same as both sides then it called as palindrome.
Code:
n=input()
if(n==n[::-1]):
print("palindrome")
else:
print("not palindrome")
Note:
Hello Guys, Don't Stop Learning keep Going..............