This week we have learned about tree. This is a type of python codes. It has a root as the start and several leaf nodes assigned below the root. The most confusing part for me is that the nodes are not int or float or strings along. If I want to use the nodes, I have to say node.value to use it to either compare to print. Otherwise, it will print out an error. Otherwise, Tree is not hard to understand for me.
No comments:
Post a Comment