I was trying to solve some exercises whit trees from the directory programming exercises and I noticed some problem:
1) the name of the file containing the class tree is called albero, but both in program.py and test.py it's imported as tree, and this raise an error.
2) I tried to print the tree, but if the tree has Childs then __repr__ doesn't work. and it raise this error: TypeError: expected 0 arguments, got 1 in the line 60 of albero.py
3)the lib test doesn't work because it says tree1 = tree.BinaryTree.fromList(tree), but tree doesn't exist
1) the name of the file containing the class tree is called albero, but both in program.py and test.py it's imported as tree, and this raise an error.
2) I tried to print the tree, but if the tree has Childs then __repr__ doesn't work. and it raise this error: TypeError: expected 0 arguments, got 1 in the line 60 of albero.py
3)the lib test doesn't work because it says tree1 = tree.BinaryTree.fromList(tree), but tree doesn't exist