Skip to content

Commit b2b366f

Browse files
Added doctest to the function.
1 parent a2bee23 commit b2b366f

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
@@ -4,5 +4,5 @@ def is_string_palindrome(words: str) -> bool:
44

55

66
if __name__ == "__main__":
7-
word = input("Enter a word:-")
8-
print(is_string_palindrome(word))
7+
import doctest
8+
doctest.testmod()

0 commit comments

Comments
 (0)