結果 : nested if in python code