Created
May 31, 2019 11:35
-
-
Save costa86/ef0754044351d997b74d7ba9f915037a to your computer and use it in GitHub Desktop.
Check whether a string is a palindrome
This file contains hidden or 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
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