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