結果 : check index in for loop python