結果 : nested if condition in python