結果 : nested if structure in python