結果 : nested if statement syntax in python