From 0f29543d3cfe7909d124f7682ccd2e940883adff Mon Sep 17 00:00:00 2001 From: Diwas Dahal <105503443+di-was@users.noreply.github.com> Date: Mon, 24 Jul 2023 16:04:36 +0545 Subject: [PATCH] Update data_structures/binary_tree/basic_binary_tree.py Co-authored-by: Christian Clauss --- data_structures/binary_tree/basic_binary_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/binary_tree/basic_binary_tree.py b/data_structures/binary_tree/basic_binary_tree.py index 2f0b1bf75..0a1486076 100644 --- a/data_structures/binary_tree/basic_binary_tree.py +++ b/data_structures/binary_tree/basic_binary_tree.py @@ -24,7 +24,7 @@ def display_tree(root: Node | None, level: int = 0) -> None: """ if root: display_tree(root.right, level + 1) - print(" " * level + str(root.data)) + print(f"{' ' * level}{root.data}") display_tree(root.left, level + 1)