Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

palindrome checker python

value = input("Enter a Word: ")

if value == value[::-1] :
    print(value)
    print(value[::-1])
    print("THIS WORD IS A PALINDROME")
else :
    print(value)
    print(value[::-1])
    print("THIS WORD IS NOT A PALINDROME")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #palindrome #checker #python
ADD COMMENT
Topic
Name
9+8 =