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.thecodeteacher.com #
 
PREVIOUS NEXT
Tagged: #python #palindrome #program
ADD COMMENT
Topic
Name
7+8 =