We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace6b50 commit 5a7a617Copy full SHA for 5a7a617
other/palindrome_check.py
@@ -28,8 +28,10 @@ def is_palindrome(text: str) -> bool:
28
# is using slicing: text[::-1].
29
# We compare the original string with its reversed version.
30
return text == text[::-1]
31
+
32
33
if __name__ == "__main__":
34
# Standard boilerplate for running documentation examples as tests.
35
import doctest
36
37
doctest.testmod()
-
0 commit comments