X Tutup
Skip to content

Commit 0704f2b

Browse files
committed
Update palindrome.py
1 parent 47e4aca commit 0704f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

useful_scripts/palindrome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
"""
77
stripped_str = "".join([l.lower() for l in my_str if l.isalpha()])
88
return stripped_str == stripped_str[::-1]

0 commit comments

Comments
 (0)
X Tutup