From a3382fea02d209178cb150ccae25022d84c7a4bf Mon Sep 17 00:00:00 2001 From: Jarvis Jeason Jacob Date: Thu, 27 Aug 2026 08:36:32 +0530 Subject: [PATCH] Add docstring to prompt() --- searches/binary_tree_traversal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/searches/binary_tree_traversal.py b/searches/binary_tree_traversal.py index 47af57f7f94d..2e70bcfe251b 100644 --- a/searches/binary_tree_traversal.py +++ b/searches/binary_tree_traversal.py @@ -259,6 +259,7 @@ def post_order_iter(node: TreeNode) -> None: def prompt(s: str = "", width=50, char="*") -> str: + """Return a prompt string padded to the specified width.""" if not s: return "\n" + width * char left, extra = divmod(width - len(s) - 2, 2)