結果 : tree data structure in python code