結果 : use of nested if statement in python