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.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #How #check #palindrom #python
ADD COMMENT
Topic
Name
3+2 =