Python Bugs
Go to solution
Solved by Garry Motorway,
Your FindNode function on line 105 is comparing number to the method GetNumber. You need to call it!
def FindNode(number):
for val in tree:
if (number == val.GetNumber):
return val
should be
def FindNode(number):
for val in tree:
if (number == val.GetNumber()):
return val

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now