結果 : check for index out of range python