結果 : if loop with two conditions in python