find the small number of a palindrome in python in tamil code example
Example 1: python palindrome
def palindrome(a):
return a == a[::-1]
palindrome('radar') # True
Example 2: palindrome words python
mes=input("Enter the word and see if it is palindrome ")
if mes==mes[::-1]:
print("This word is palindrome")
else:
print("This word is not palindrome")