DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+8 =
Submit