結果 : stop for loop if condition is met python