Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c5a88ac

Browse files
committedOct 19, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b2b366f commit c5a88ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎maths/is_string_palindrome.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
def is_string_palindrome(words: str) -> bool:
2-
cleaned_phrase = ''.join(words.split()).lower()
2+
cleaned_phrase = "".join(words.split()).lower()
33
return cleaned_phrase == cleaned_phrase[::-1]
44

55

66
if __name__ == "__main__":
77
import doctest
8-
doctest.testmod()
8+
9+
doctest.testmod()

0 commit comments

Comments
 (0)
Please sign in to comment.