結果 : if else statement with logical operators in python