Skip to content

Commit a2bee23

Browse files
Formatted the code to follow rules.
Adding adequate spacing to the code.
1 parent 78808e7 commit a2bee23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

maths/is_string_palindrome.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ def is_string_palindrome(words: str) -> bool:
22
cleaned_phrase = ''.join(words.split()).lower()
33
return cleaned_phrase == cleaned_phrase[::-1]
44

5+
56
if __name__ == "__main__":
6-
n=input("Enter a word:-")
7-
print(is_string_palindrome(n))
7+
word = input("Enter a word:-")
8+
print(is_string_palindrome(word))

0 commit comments

Comments
 (0)