Skip to content

Instantly share code, notes, and snippets.

@browneye1826
Created February 13, 2022 07:59
Show Gist options
  • Save browneye1826/0b9d3251f5e94d53de42699bebc6a0e7 to your computer and use it in GitHub Desktop.
Save browneye1826/0b9d3251f5e94d53de42699bebc6a0e7 to your computer and use it in GitHub Desktop.
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