結果 : two if statements in for loop python