Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 275 Bytes
# Palindrome Example
# Palindrome String - dad, mom, madam, 121, 1120211
myString = "Madam"
myString = myString.casefold()
revString = reversed(myString)
if list(revString) == list(myString) :
print( "String is Palindrome")
else:
print( "String is not Palindrome")
You can’t perform that action at this time.