We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0704f2b commit 871f406Copy full SHA for 871f406
useful_scripts/palindrome.py
@@ -4,7 +4,7 @@ def palindrome(my_str):
4
"""
5
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