Created
February 13, 2022 07:59
-
-
Save browneye1826/0b9d3251f5e94d53de42699bebc6a0e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_palindrome(word: str) -> bool: | |
"""Return True if the given word is a palindrome | |
Args: | |
word (str): the word to check | |
Returns: | |
A boolean value. | |
""" | |
return word == word[::-1] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment