We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2bee23 commit 9a0f701Copy full SHA for 9a0f701
maths/is_string_palindrome.py
@@ -1,8 +1,8 @@
1
def is_string_palindrome(words: str) -> bool:
2
- cleaned_phrase = ''.join(words.split()).lower()
+ cleaned_phrase = "".join(words.split()).lower()
3
return cleaned_phrase == cleaned_phrase[::-1]
4
5
6
if __name__ == "__main__":
7
word = input("Enter a word:-")
8
- print(is_string_palindrome(word))
+ print(is_string_palindrome(word))
0 commit comments