結果 : nested if statement python syntax