2022-11-13 10:39:28 -08:00

4 lines
133 B
Python

def ispalindrome(string):
"""Return True for a palindrome, False otherwise."""
return string.lower() == string.lower()[::-1]