python programe for palindrome number?

print("This is the program to check whether the given string is a palindrome or not")

p=input("Enter the number")

q=p[::-1]

if(q==p):

(tab)print(p,"is a palindrome")

elif(q!=p):

(tab)print(p,"is not a palindrome")

  • 1
What are you looking for?