結果 : tree data structure code in python