4 lines
133 B
Python
4 lines
133 B
Python
def ispalindrome(string):
|
|
"""Return True for a palindrome, False otherwise."""
|
|
return string.lower() == string.lower()[::-1]
|