Skip to content

Commit 9a0f701

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a2bee23 commit 9a0f701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/is_string_palindrome.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
word = input("Enter a word:-")
8-
print(is_string_palindrome(word))
8+
print(is_string_palindrome(word))

0 commit comments

Comments
 (0)