結果 : syntax for nested if statement in python