結果 : two if statements in one line python