結果 : how to create a tree diagram in python