結果 : loop with if statement python