From 0704f2b81cedc3e8a9ba81bbad8d604c19f43f51 Mon Sep 17 00:00:00 2001 From: Sebastian Raschka Date: Sun, 13 Apr 2014 15:54:44 -0400 Subject: [PATCH] Update palindrome.py --- useful_scripts/palindrome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/useful_scripts/palindrome.py b/useful_scripts/palindrome.py index 003139e..b9c1d6f 100644 --- a/useful_scripts/palindrome.py +++ b/useful_scripts/palindrome.py @@ -2,7 +2,7 @@ def palindrome(my_str): """ - Returns True if an input string is a palindrom + Returns True if an input string is a palindrome. Else returns False. """ stripped_str = "".join([l.lower() for l in my_str if l.isalpha()]) return stripped_str == stripped_str[::-1]