Skip to content

Instantly share code, notes, and snippets.

@costa86
Created May 31, 2019 11:35
Show Gist options
  • Save costa86/ef0754044351d997b74d7ba9f915037a to your computer and use it in GitHub Desktop.
Save costa86/ef0754044351d997b74d7ba9f915037a to your computer and use it in GitHub Desktop.
Check whether a string is a palindrome
is_palindrome = lambda word:word.upper() == word[::-1].upper()
print(is_palindrome('Deleveled'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment