結果 : python detect last iteration of for loop