Skip to content

Commit 5b6f8d8

Browse files
rajansh87cclauss
andauthored
Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 6193d6e commit 5b6f8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/binary_tree/binary_tree_traversals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def levelorder2(root,level):
6969
Level-wise traversal:
7070
Print all nodes present at the given level of the binary tree.
7171
"""
72-
if root==None:
72+
if not root:
7373
return root
7474
if level==1:
7575
print(root.data,end=" ")

0 commit comments

Comments
 (0)