結果 : how to make nested if statements in python