結果 : nested for loop if else python