結果 : how to do nested if statements in python