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 e9a779a

Browse files
committedOct 19, 2024·
Added doctests
1 parent 8a696e4 commit e9a779a

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
@@ -42,5 +42,6 @@ def is_string_palindrome(words: str) -> bool:
4242
return cleaned_phrase == cleaned_phrase[::-1]
4343

4444
if __name__ == "__main__":
45-
n=input("Enter a word:-")
46-
print(is_string_palindrome(n))
45+
import doctest
46+
47+
doctest.testmod()

0 commit comments

Comments
 (0)
Please sign in to comment.