Answers for "check palindrome in python in one linr"

1

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")
Posted by: Guest on August-03-2021
0

python palindrome check

#Palindrome check
word = 'reviver'
p = bool(word.find(word[::-1]) + 1)
print(p) # True
Posted by: Guest on November-21-2021

Code answers related to "check palindrome in python in one linr"

Python Answers by Framework

Browse Popular Code Answers by Language