Python PALINDROME NUMBER with example


Find PALINDROME NUMBER in Python



def palindrome(name):
rev=name[::-1]
if name==rev:
return "palindrome" return "not palindrome"name=input("enter any string: ")

print(palindrome(name))

Python PALINDROME NUMBER with example

Leave a Comment

Your email address will not be published. Required fields are marked *