結果 : flowchart rules in python