(May-11-2021, 09:03 AM)ibreeden Wrote: @Anldra12: As Axel mentioned: there is no method "insert()" in your class "Node". But there is also a class "BTree_struct" which does have such method.
But it is difficult to understand your code because there are many problems with the indentation. Line 31 (to 33) is not indented so the class definition ends there. But if I try to indent that part there is a mystery about the return statement on line 35. Does it belong to the the method "_height()"? If it does, what about the if statement on line 36 that will never be executed. And there are a lot of these problems. Must "BTree_struct" really by a class within class "Node"?
Please first correct the indentation of your code.
yeah the indentation error will be correct as well the return statement belong to height method 36 will be execute for me the code give me an error however trying to solve it