結果 : python avoid nested if statements