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 cc311a0 commit b04cf10Copy full SHA for b04cf10
other/palindrome_check.py
@@ -1,4 +1,7 @@
1
-from typing import Text # Imports the 'Text' type for clarity (optional, but good practice)
+from typing import (
2
+ Text,
3
+) # Imports the 'Text' type for clarity (optional, but good practice)
4
+
5
6
def is_palindrome(text: str) -> bool:
7
"""
@@ -35,4 +38,5 @@ def is_palindrome(text: str) -> bool:
35
38
if __name__ == "__main__":
36
39
# Standard boilerplate for running documentation examples as tests.
37
40
import doctest
- doctest.testmod()
41
42
+ doctest.testmod()
0 commit comments