結果 : stop for loop when condition is met python