Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to check palindrom in python

myString = "aba"
if myString == myString[::-1]:
	print("The string '" + myString + "' is a palindrome")
else:
	print("The string '" + myString + "' is not a palindrome")
Source by www.thecodeteacher.com #
 
PREVIOUS NEXT
Tagged: #How #check #palindrom #python
ADD COMMENT
Topic
Name
5+1 =