結果 : exit for loop if condition is met python