Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python - How To Check if a String Is a Palindrome

word = input() if str(word) == str(word)[::-1] :     print("Palindrome") else:     print("Not Palindrome")
Source by www.thecodeteacher.com #
 
PREVIOUS NEXT
Tagged: #Python #How #To #Check #String #Is #Palindrome
ADD COMMENT
Topic
Name
2+8 =