結果 : syntax of nested if statement in python