Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python palindrome program

n = input("Enter the word and see if it is palindrome: ") #check palindrome
if n == n[::-1]:
    print("This word is palindrome")
else:
    print("This word is not palindrome")
    print("franco")
Source by www.kdnuggets.com #
 
PREVIOUS NEXT
Tagged: #python #palindrome #program
ADD COMMENT
Topic
Name
1+2 =