結果 : explain the nested if statement in python