We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 776792f + 871f406 commit d4c4661Copy full SHA for d4c4661
1 file changed
useful_scripts/palindrome.py
@@ -2,9 +2,9 @@
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()])
+ stripped_str = "".join(l.lower() for l in my_str if l.isalpha())
8
return stripped_str == stripped_str[::-1]
9
10
if __name__ == '__main__':
0 commit comments