結果 : nested for loop with if statement python