結果 : for loop until condition is met python