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 16ad748 commit 02b212dCopy full SHA for 02b212d
1 file changed
height_of_tree/tree.py
@@ -13,7 +13,7 @@ def __init__(self):
13
self.root = None
14
15
def create(self, val):
16
- if self.root == None:
+ if self.root is None:
17
self.root = Node(val)
18
else:
19
current = self.root
0 commit comments