Skip to content

Commit d4c4661

Browse files
committed
2 parents 776792f + 871f406 commit d4c4661

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

useful_scripts/palindrome.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
def palindrome(my_str):
44
"""
5-
Returns True if an input string is a palindrom
5+
Returns True if an input string is a palindrome. Else returns False.
66
"""
7-
stripped_str = "".join([l.lower() for l in my_str if l.isalpha()])
7+
stripped_str = "".join(l.lower() for l in my_str if l.isalpha())
88
return stripped_str == stripped_str[::-1]
99

1010
if __name__ == '__main__':

0 commit comments

Comments
 (0)