結果 : if else with for loop in python