結果 : how to use nested if statement in python