We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e4aca commit 0704f2bCopy full SHA for 0704f2b
useful_scripts/palindrome.py
@@ -2,7 +2,7 @@
2
3
def palindrome(my_str):
4
"""
5
- Returns True if an input string is a palindrom
+ Returns True if an input string is a palindrome. Else returns False.
6
7
stripped_str = "".join([l.lower() for l in my_str if l.isalpha()])
8
return stripped_str == stripped_str[::-1]
0 commit comments